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.001012/0.001012, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.001078/0.001078, allocations: 192 kB / 18.51 MB, free: 4.641 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.399/1.399, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001378/0.001379, allocations: 51.92 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08238/0.08377, allocations: 46.63 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01758/0.1014, allocations: 16.02 MB / 343.4 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01148/0.1129, allocations: 5.125 MB / 348.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003603/0.1166, allocations: 119.6 kB / 348.6 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008645/0.1253, allocations: 4.454 MB / 353.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006942/0.1322, allocations: 2.544 MB / 355.6 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002782/0.135, allocations: 1.158 MB / 356.8 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.1463, allocations: 7.504 MB / 364.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00724/0.1535, allocations: 5.338 MB / 369.6 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004124/0.1577, allocations: 2.477 MB / 372.1 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005022/0.1627, allocations: 3.384 MB / 375.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001679/0.1644, allocations: 0.5078 MB / 376 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003504/0.1679, allocations: 1.487 MB / 377.5 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1759/0.3439, allocations: 2.965 MB / 380.5 MB, free: 20.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006622/0.3505, allocations: 3.464 MB / 383.9 MB, free: 19.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01366/0.3642, allocations: 10.31 MB / 394.2 MB, free: 18.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.3643, allocations: 0 / 394.2 MB, free: 18.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3643, allocations: 1.156 kB / 394.2 MB, free: 18.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003976/0.3647, allocations: 0 / 394.2 MB, free: 18.29 MB / 318.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.02656/0.3913, allocations: 7.923 MB / 402.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.3913, allocations: 18.7 kB / 402.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003944/0.3953, allocations: 1.077 MB / 403.3 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05416/0.4495, allocations: 8.406 MB / 411.7 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01383/0.4633, allocations: 6.221 MB / 417.9 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003328/0.4637, allocations: 345.3 kB / 418.2 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002764/0.4665, allocations: 473.3 kB / 418.7 MB, free: 7.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03314/0.4997, allocations: 14.47 MB / 433.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004462/0.5001, allocations: 66.06 kB / 433.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002488/0.5027, allocations: 215.1 kB / 433.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006078/0.5088, allocations: 2.834 MB / 436.3 MB, free: 6.969 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03007/0.5389, allocations: 13.01 MB / 449.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09055/0.6295, allocations: 58.34 MB / 0.4957 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01885/0.6483, allocations: 7.685 MB / 0.5032 GB, free: 7.258 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007068/0.6555, allocations: 5.008 MB / 0.5081 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02449/0.68, allocations: 12.71 MB / 0.5205 GB, free: 5.465 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.419e-05/0.6801, allocations: 68.69 kB / 0.5206 GB, free: 5.387 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 6.903e-06/0.6801, allocations: 0 / 0.5206 GB, free: 5.387 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 2.023/2.703, allocations: 411.3 MB / 0.9223 GB, free: 74.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.047e-05/2.703, allocations: 270.3 kB / 0.9225 GB, free: 73.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007503/2.71, allocations: 5.554 MB / 0.928 GB, free: 68.54 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002158/2.713, allocations: 109.7 kB / 0.9281 GB, free: 68.42 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003138/2.716, allocations: 4.011 MB / 0.932 GB, free: 65.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003775/2.72, allocations: 2.009 MB / 0.9339 GB, free: 63.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005049/2.725, allocations: 2.073 MB / 0.936 GB, free: 61.06 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.167e-05/2.725, allocations: 303.6 kB / 0.9363 GB, free: 60.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01311/2.738, allocations: 10.88 MB / 0.9469 GB, free: 49.88 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01629/2.754, allocations: 14.99 MB / 0.9615 GB, free: 33.06 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2262/2.98, allocations: 27.12 MB / 0.988 GB, free: 123.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001436/2.981, allocations: 38.81 kB / 0.988 GB, free: 123.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.3088/3.289, allocations: 140.4 MB / 1.125 GB, free: 18.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.408e-05/3.29, allocations: 64 kB / 1.125 GB, free: 18.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001373/3.29, allocations: 136 kB / 1.125 GB, free: 18.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2426/3.532, allocations: 34.61 MB / 1.159 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004478/3.537, allocations: 1.482 MB / 1.161 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.399/3.936, allocations: 203.2 MB / 1.359 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01321/3.949, allocations: 1.703 MB / 1.361 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002276/3.951, allocations: 0.527 MB / 1.361 GB, free: 107.3 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.006305/3.958, allocations: 3.094 MB / 1.364 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001762/3.959, allocations: 0.5852 MB / 1.365 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4629/4.422, allocations: 136.4 MB / 1.498 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.911e-05/4.422, allocations: 57.12 kB / 1.498 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001311/4.423, allocations: 64.81 kB / 1.498 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.313e-05/4.423, allocations: 27.89 kB / 1.498 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5189/4.942, allocations: 206.2 MB / 1.7 GB, free: 89.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.323e-05/4.942, allocations: 10.62 kB / 1.7 GB, free: 89.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/4.943, allocations: 333.7 kB / 1.7 GB, free: 89.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06739/5.011, allocations: 33.31 MB / 1.732 GB, free: 59.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001645/5.012, allocations: 104.6 kB / 1.732 GB, free: 59.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3961/5.408, allocations: 185.8 MB / 1.914 GB, free: 37.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.27e-05/5.409, allocations: 10.53 kB / 1.914 GB, free: 37.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4841/5.893, allocations: 152.2 MB / 2.063 GB, free: 46.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006583/5.899, allocations: 3 MB / 2.065 GB, free: 44.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002792/5.902, allocations: 99.98 kB / 2.066 GB, free: 44.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009439/5.912, allocations: 1.478 MB / 2.067 GB, free: 42.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003891/5.915, allocations: 0.4918 MB / 2.068 GB, free: 42.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001108/5.917, allocations: 144 kB / 2.068 GB, free: 42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005703/5.922, allocations: 3.561 MB / 2.071 GB, free: 38.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/5.922, allocations: 0 / 2.071 GB, free: 38.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01572/5.938, allocations: 3.807 MB / 2.075 GB, free: 34.66 MB / 446.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.4948/6.433, allocations: 152.7 MB / 2.224 GB, free: 46.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.06167/6.495, allocations: 38.67 MB / 2.262 GB, free: 7.707 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/6.495, allocations: 8 kB / 2.262 GB, free: 7.699 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1899/6.685, allocations: 20.5 MB / 2.282 GB, free: 131.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008059/6.693, allocations: 0.8277 MB / 2.283 GB, free: 131.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.029/7.721, allocations: 371.5 MB / 2.645 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006831/7.728, allocations: 5.117 MB / 2.65 GB, free: 107.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004478/7.733, allocations: 2.075 MB / 2.652 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003723/7.736, allocations: 3.035 MB / 2.655 GB, free: 105 MB / 462.1 MB Notification: Performance of SimCode: time 1.793e-06/7.736, allocations: 0 / 2.655 GB, free: 105 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7057/8.442, allocations: 338.7 MB / 2.986 GB, free: 86.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.11/27.55, allocations: 0 / 2.986 GB, free: 86.75 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/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches