Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 97.19 kB / 16.94 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 183.9 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004698/0.0004698, allocations: 12 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1167, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.3028/0.4195, allocations: 64.48 MB / 392.9 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03805/0.4576, allocations: 14.99 MB / 407.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01968/0.4774, allocations: 333.1 kB / 408.2 MB, free: 7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01594/0.4934, allocations: 3.232 MB / 411.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03516/0.5286, allocations: 9.255 MB / 420.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005393/0.534, allocations: 0.9944 MB / 421.7 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.05802/0.592, allocations: 40.36 MB / 462.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01089/0.603, allocations: 6.56 MB / 468.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004507/0.6075, allocations: 1.67 MB / 470.3 MB, free: 7.426 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004613/0.6122, allocations: 2.243 MB / 472.5 MB, free: 5.176 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001416/0.6136, allocations: 216 kB / 472.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003415/0.617, allocations: 1.069 MB / 473.8 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003255/0.6203, allocations: 2.435 MB / 476.3 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002384/0.6227, allocations: 1.228 MB / 477.5 MB, free: 220 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01071/0.6334, allocations: 8.152 MB / 485.6 MB, free: 8.043 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.6335, allocations: 4 kB / 485.6 MB, free: 8.039 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.6335, allocations: 3.938 kB / 485.6 MB, free: 8.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004012/0.6339, allocations: 0 / 485.6 MB, free: 8.035 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01923/0.6531, allocations: 6.94 MB / 492.6 MB, free: 1.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.6532, allocations: 8.031 kB / 492.6 MB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003963/0.6572, allocations: 1.082 MB / 493.7 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06008/0.7173, allocations: 11.21 MB / 0.493 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0133/0.7306, allocations: 5.519 MB / 0.4984 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003158/0.731, allocations: 340.7 kB / 0.4988 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002069/0.733, allocations: 471.5 kB / 0.4992 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03075/0.7638, allocations: 14.67 MB / 0.5135 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002724/0.7641, allocations: 75.36 kB / 0.5136 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00106/0.7652, allocations: 215.8 kB / 0.5138 GB, free: 14.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005706/0.7709, allocations: 2.836 MB / 0.5166 GB, free: 11.56 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02928/0.8002, allocations: 13.23 MB / 0.5295 GB, free: 14.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2899/1.09, allocations: 58.49 MB / 0.5866 GB, free: 125.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01687/1.107, allocations: 8.004 MB / 0.5944 GB, free: 122.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01922/1.126, allocations: 12.82 MB / 0.607 GB, free: 113.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/1.126, allocations: 64.7 kB / 0.607 GB, free: 113.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.149e-06/1.126, allocations: 0 / 0.607 GB, free: 113.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.969/3.096, allocations: 409.2 MB / 1.007 GB, free: 45.44 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.904e-05/3.096, allocations: 265.7 kB / 1.007 GB, free: 45.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006992/3.103, allocations: 5.894 MB / 1.013 GB, free: 39.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001644/3.105, allocations: 115 kB / 1.013 GB, free: 39.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001903/3.106, allocations: 4.015 MB / 1.017 GB, free: 35.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002345/3.109, allocations: 2.005 MB / 1.019 GB, free: 33.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009788/3.11, allocations: 184 kB / 1.019 GB, free: 32.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003397/3.11, allocations: 0.6946 MB / 1.02 GB, free: 32.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1898/3.3, allocations: 10.84 MB / 1.03 GB, free: 145.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02006/3.32, allocations: 14.92 MB / 1.045 GB, free: 138 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01635/3.336, allocations: 12.68 MB / 1.057 GB, free: 132.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001109/3.337, allocations: 37.59 kB / 1.057 GB, free: 132.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.544/3.881, allocations: 140.3 MB / 1.194 GB, free: 131.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001462/3.881, allocations: 63.47 kB / 1.194 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002309/3.881, allocations: 137.1 kB / 1.194 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08021/3.961, allocations: 34.64 MB / 1.228 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005225/3.967, allocations: 1.479 MB / 1.23 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5159/4.482, allocations: 197.5 MB / 1.422 GB, free: 88.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01569/4.498, allocations: 1.709 MB / 1.424 GB, free: 87.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003325/4.502, allocations: 0.5192 MB / 1.425 GB, free: 87.23 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.008552/4.51, allocations: 3.095 MB / 1.428 GB, free: 84.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002265/4.512, allocations: 0.5912 MB / 1.428 GB, free: 84.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5538/5.066, allocations: 136.4 MB / 1.561 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.978e-05/5.066, allocations: 56 kB / 1.561 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001732/5.067, allocations: 60 kB / 1.562 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001385/5.067, allocations: 30.98 kB / 1.562 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6075/5.674, allocations: 206.2 MB / 1.763 GB, free: 93.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.966e-05/5.674, allocations: 9.375 kB / 1.763 GB, free: 93.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/5.676, allocations: 330.6 kB / 1.763 GB, free: 93.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07121/5.747, allocations: 33.75 MB / 1.796 GB, free: 64.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002012/5.749, allocations: 104 kB / 1.796 GB, free: 64.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4273/6.177, allocations: 180.5 MB / 1.973 GB, free: 48.36 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.698e-06/6.177, allocations: 16.41 kB / 1.973 GB, free: 48.35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5529/6.73, allocations: 153 MB / 2.122 GB, free: 57.42 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008922/6.738, allocations: 3.023 MB / 2.125 GB, free: 54.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002961/6.741, allocations: 95.98 kB / 2.125 GB, free: 54.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009484/6.751, allocations: 1.485 MB / 2.127 GB, free: 53.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003488/6.755, allocations: 498.1 kB / 2.127 GB, free: 52.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009985/6.756, allocations: 140.6 kB / 2.127 GB, free: 52.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005208/6.761, allocations: 3.834 MB / 2.131 GB, free: 48.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/6.761, allocations: 0 / 2.131 GB, free: 48.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01497/6.776, allocations: 3.822 MB / 2.135 GB, free: 44.88 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.5307/7.307, allocations: 154.8 MB / 2.286 GB, free: 55.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.05538/7.362, allocations: 33.35 MB / 2.318 GB, free: 21.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/7.362, allocations: 0 / 2.318 GB, free: 21.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2297/7.592, allocations: 20.45 MB / 2.338 GB, free: 140.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005203/7.597, allocations: 0.7092 MB / 2.339 GB, free: 140.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6472/8.244, allocations: 309.1 MB / 2.641 GB, free: 37.15 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006251/8.251, allocations: 5.252 MB / 2.646 GB, free: 31.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004648/8.255, allocations: 2.077 MB / 2.648 GB, free: 29.95 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003145/8.258, allocations: 3.041 MB / 2.651 GB, free: 26.91 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/8.258, allocations: 0 / 2.651 GB, free: 26.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8141/9.072, allocations: 325.2 MB / 2.969 GB, free: 21.16 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/9.073, allocations: 214.2 kB / 2.969 GB, free: 20.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.622/16.69, allocations: 0 / 2.969 GB, free: 20.92 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat