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.001303/0.001303, allocations: 108.1 kB / 17.15 MB, free: 6.309 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.001188/0.001188, allocations: 198 kB / 18.07 MB, free: 5.41 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.354/1.354, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001207/0.001207, allocations: 56.25 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08153/0.08275, allocations: 46.64 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2344/0.3172, allocations: 75.42 MB / 402.1 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03046/0.3477, allocations: 14.98 MB / 417.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0166/0.3643, allocations: 344.4 kB / 417.4 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007338/0.3717, allocations: 4.436 MB / 421.9 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006591/0.3784, allocations: 2.39 MB / 424.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002716/0.3811, allocations: 1.069 MB / 425.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01221/0.3933, allocations: 10.5 MB / 435.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006776/0.4001, allocations: 5.222 MB / 441.1 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004454/0.4046, allocations: 2.209 MB / 443.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005862/0.4105, allocations: 3.606 MB / 446.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002032/0.4126, allocations: 356 kB / 447.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004101/0.4167, allocations: 1.402 MB / 448.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004062/0.4208, allocations: 2.855 MB / 451.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006176/0.427, allocations: 3.292 MB / 454.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01258/0.4396, allocations: 10.16 MB / 464.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.4397, allocations: 0 / 464.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4397, allocations: 0 / 464.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004062/0.4401, allocations: 4 kB / 464.9 MB, free: 10.61 MB / 366.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.02253/0.4627, allocations: 7.928 MB / 472.9 MB, free: 2.727 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.4627, allocations: 8.031 kB / 472.9 MB, free: 2.719 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004116/0.4669, allocations: 1.081 MB / 474 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05277/0.5197, allocations: 8.405 MB / 482.4 MB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01337/0.5331, allocations: 6.222 MB / 488.6 MB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003627/0.5335, allocations: 339.8 kB / 488.9 MB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00217/0.5357, allocations: 470.7 kB / 489.4 MB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02984/0.5655, allocations: 14.47 MB / 0.492 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003536/0.5659, allocations: 75.28 kB / 0.4921 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001676/0.5676, allocations: 212.9 kB / 0.4923 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00543/0.5731, allocations: 2.847 MB / 0.4951 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.026/0.5991, allocations: 13 MB / 0.5078 GB, free: 2.969 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2456/0.8447, allocations: 58.35 MB / 0.5648 GB, free: 130.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01598/0.8608, allocations: 7.69 MB / 0.5723 GB, free: 128.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00485/0.8656, allocations: 5.003 MB / 0.5772 GB, free: 126.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01604/0.8817, allocations: 12.7 MB / 0.5896 GB, free: 120.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.8818, allocations: 70.91 kB / 0.5896 GB, free: 120.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 8.075e-06/0.8818, allocations: 3.5 kB / 0.5896 GB, free: 120.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.761/2.643, allocations: 411.3 MB / 0.9913 GB, free: 55.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.488e-05/2.643, allocations: 265.7 kB / 0.9916 GB, free: 54.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006128/2.649, allocations: 5.56 MB / 0.997 GB, free: 49.36 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001446/2.651, allocations: 109.7 kB / 0.9971 GB, free: 49.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001754/2.653, allocations: 4.018 MB / 1.001 GB, free: 45.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002273/2.655, allocations: 2.002 MB / 1.003 GB, free: 43.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003633/2.658, allocations: 2.069 MB / 1.005 GB, free: 41.17 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.886e-05/2.659, allocations: 305 kB / 1.005 GB, free: 40.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01179/2.67, allocations: 10.88 MB / 1.016 GB, free: 29.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1598/2.83, allocations: 14.98 MB / 1.031 GB, free: 141.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03008/2.86, allocations: 27.12 MB / 1.057 GB, free: 126.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002218/2.861, allocations: 38.84 kB / 1.057 GB, free: 126.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4426/3.303, allocations: 140.4 MB / 1.194 GB, free: 130.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000117/3.303, allocations: 67.73 kB / 1.194 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001881/3.303, allocations: 136.9 kB / 1.194 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07188/3.375, allocations: 34.58 MB / 1.228 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004253/3.38, allocations: 1.479 MB / 1.23 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3832/3.763, allocations: 190.2 MB / 1.415 GB, free: 90.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01152/3.774, allocations: 1.709 MB / 1.417 GB, free: 89.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002116/3.776, allocations: 0.5272 MB / 1.418 GB, free: 88.71 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.005588/3.782, allocations: 3.08 MB / 1.421 GB, free: 86.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001704/3.784, allocations: 0.594 MB / 1.421 GB, free: 85.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4323/4.216, allocations: 136.4 MB / 1.554 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.449e-05/4.216, allocations: 56.59 kB / 1.554 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001179/4.216, allocations: 62.8 kB / 1.554 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.415e-05/4.216, allocations: 23.91 kB / 1.554 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4951/4.712, allocations: 206.2 MB / 1.756 GB, free: 97.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.006e-05/4.712, allocations: 4 kB / 1.756 GB, free: 97.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001477/4.713, allocations: 330.6 kB / 1.756 GB, free: 96.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0688/4.782, allocations: 33.7 MB / 1.789 GB, free: 68 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00189/4.784, allocations: 103.7 kB / 1.789 GB, free: 67.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4372/5.221, allocations: 173 MB / 1.958 GB, free: 59.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/5.221, allocations: 7.844 kB / 1.958 GB, free: 59.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5059/5.727, allocations: 152.2 MB / 2.107 GB, free: 69.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007228/5.734, allocations: 3.001 MB / 2.11 GB, free: 66.53 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002677/5.737, allocations: 100 kB / 2.11 GB, free: 66.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008749/5.746, allocations: 1.482 MB / 2.111 GB, free: 64.95 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004006/5.75, allocations: 493.1 kB / 2.112 GB, free: 64.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008646/5.751, allocations: 144 kB / 2.112 GB, free: 64.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004765/5.756, allocations: 3.567 MB / 2.115 GB, free: 60.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/5.756, allocations: 0 / 2.115 GB, free: 60.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01445/5.77, allocations: 3.8 MB / 2.119 GB, free: 57 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.5541/6.324, allocations: 152.7 MB / 2.268 GB, free: 69.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.05264/6.377, allocations: 33.52 MB / 2.301 GB, free: 35.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/6.377, allocations: 0 / 2.301 GB, free: 35.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2697/6.647, allocations: 20.48 MB / 2.321 GB, free: 140.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007443/6.654, allocations: 0.7885 MB / 2.322 GB, free: 140.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.112/7.766, allocations: 374.4 MB / 2.687 GB, free: 119.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005607/7.772, allocations: 5.124 MB / 2.692 GB, free: 117 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005166/7.777, allocations: 2.064 MB / 2.694 GB, free: 116.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00335/7.781, allocations: 3.038 MB / 2.697 GB, free: 116 MB / 462.1 MB Notification: Performance of SimCode: time 1.163e-06/7.781, allocations: 2.969 kB / 2.697 GB, free: 116 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8496/8.63, allocations: 329.2 MB / 3.019 GB, free: 134 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/8.63, allocations: 258.4 kB / 3.019 GB, free: 133.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.995/15.63, allocations: 3.938 kB / 3.019 GB, free: 133.7 MB / 478.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/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) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches