Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_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.001268/0.001268, allocations: 104.5 kB / 17.06 MB, free: 6.016 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.001309/0.001309, allocations: 196 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009753/0.0009753, allocations: 39.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2596, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01721/0.2768, allocations: 15.92 MB / 416.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01074/0.2876, allocations: 5.11 MB / 421.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002869/0.2905, allocations: 111.6 kB / 421.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008423/0.299, allocations: 4.442 MB / 425.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007105/0.3062, allocations: 2.525 MB / 428.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002692/0.3089, allocations: 1.151 MB / 429.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01066/0.3196, allocations: 7.97 MB / 437.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007097/0.3267, allocations: 5.315 MB / 442.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005046/0.3318, allocations: 2.469 MB / 445.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005436/0.3373, allocations: 3.361 MB / 448.6 MB, free: 8.238 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001779/0.3391, allocations: 0.5078 MB / 449.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003519/0.3426, allocations: 1.506 MB / 450.6 MB, free: 6.223 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003796/0.3464, allocations: 2.996 MB / 453.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005266/0.3517, allocations: 3.442 MB / 457.1 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01205/0.3638, allocations: 10.56 MB / 467.6 MB, free: 5.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.3638, allocations: 0 / 467.6 MB, free: 5.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3638, allocations: 3.938 kB / 467.6 MB, free: 5.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004251/0.3643, allocations: 0 / 467.6 MB, free: 5.16 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.02185/0.3861, allocations: 7.871 MB / 475.5 MB, free: 13.2 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.3862, allocations: 16.03 kB / 475.5 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002817/0.389, allocations: 1.086 MB / 476.6 MB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05758/0.4466, allocations: 8.398 MB / 485 MB, free: 3.672 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01429/0.461, allocations: 5.844 MB / 490.8 MB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003646/0.4614, allocations: 344.8 kB / 491.2 MB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002016/0.4634, allocations: 463.6 kB / 491.6 MB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02971/0.4931, allocations: 14.47 MB / 0.4942 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002748/0.4934, allocations: 67.42 kB / 0.4943 GB, free: 13.49 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001328/0.4948, allocations: 219.8 kB / 0.4945 GB, free: 13.27 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005485/0.5003, allocations: 2.832 MB / 0.4973 GB, free: 10.44 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02627/0.5266, allocations: 13.01 MB / 0.51 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2787/0.8054, allocations: 58.03 MB / 0.5666 GB, free: 93.76 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01453/0.8199, allocations: 7.684 MB / 0.5741 GB, free: 91.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004376/0.8243, allocations: 5.014 MB / 0.579 GB, free: 88.61 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01632/0.8407, allocations: 12.68 MB / 0.5914 GB, free: 78.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.267e-05/0.8407, allocations: 70.41 kB / 0.5915 GB, free: 78.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.813e-06/0.8408, allocations: 0 / 0.5915 GB, free: 78.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 1.96/2.801, allocations: 411.2 MB / 0.993 GB, free: 124.7 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.245e-05/2.801, allocations: 269.4 kB / 0.9933 GB, free: 124.3 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00638/2.807, allocations: 5.494 MB / 0.9987 GB, free: 119.1 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001589/2.809, allocations: 117.7 kB / 0.9988 GB, free: 119 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001848/2.811, allocations: 4.002 MB / 1.003 GB, free: 115.6 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002394/2.813, allocations: 2.007 MB / 1.005 GB, free: 113.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003925/2.817, allocations: 2.068 MB / 1.007 GB, free: 111.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.716e-05/2.817, allocations: 304.8 kB / 1.007 GB, free: 111.2 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0111/2.828, allocations: 10.88 MB / 1.018 GB, free: 100.3 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01362/2.842, allocations: 15 MB / 1.032 GB, free: 83.48 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02566/2.868, allocations: 27.12 MB / 1.059 GB, free: 54.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.336e-05/2.868, allocations: 44 kB / 1.059 GB, free: 54.46 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.515/3.383, allocations: 140.4 MB / 1.196 GB, free: 103.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.29e-05/3.383, allocations: 64 kB / 1.196 GB, free: 103.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001228/3.383, allocations: 140 kB / 1.196 GB, free: 103 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07449/3.457, allocations: 34.56 MB / 1.23 GB, free: 68.49 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004365/3.462, allocations: 1.479 MB / 1.231 GB, free: 67.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.492/3.954, allocations: 203.1 MB / 1.43 GB, free: 75.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01226/3.966, allocations: 1.705 MB / 1.431 GB, free: 73.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001965/3.968, allocations: 0.5298 MB / 1.432 GB, free: 73.4 MB / 0.5294 GB 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.005167/3.973, allocations: 3.082 MB / 1.435 GB, free: 70.45 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001587/3.975, allocations: 0.582 MB / 1.435 GB, free: 70.09 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5265/4.501, allocations: 136.4 MB / 1.569 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.773e-05/4.502, allocations: 56 kB / 1.569 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001631/4.502, allocations: 60 kB / 1.569 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00012/4.502, allocations: 23.91 kB / 1.569 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5776/5.079, allocations: 205.9 MB / 1.77 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.739e-05/5.08, allocations: 15.31 kB / 1.77 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00157/5.081, allocations: 328.8 kB / 1.77 GB, free: 119.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0695/5.151, allocations: 33.28 MB / 1.803 GB, free: 90.86 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001626/5.152, allocations: 96 kB / 1.803 GB, free: 90.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4215/5.574, allocations: 185.8 MB / 1.984 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.437e-06/5.574, allocations: 12.5 kB / 1.984 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5538/6.128, allocations: 152.2 MB / 2.133 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/6.129, allocations: 0.6258 MB / 2.133 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002021/6.131, allocations: 104.3 kB / 2.134 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008786/6.14, allocations: 1.479 MB / 2.135 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003231/6.144, allocations: 0.4889 MB / 2.135 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007826/6.144, allocations: 146.5 kB / 2.136 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00435/6.149, allocations: 3.518 MB / 2.139 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/6.149, allocations: 2.344 kB / 2.139 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.012/6.161, allocations: 3.804 MB / 2.143 GB, free: 138.1 MB / 0.5294 GB 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.5401/6.701, allocations: 152.7 MB / 2.292 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.05137/6.752, allocations: 33.64 MB / 2.325 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.401e-05/6.752, allocations: 3.844 kB / 2.325 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03659/6.789, allocations: 20.51 MB / 2.345 GB, free: 123 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006114/6.795, allocations: 0.8327 MB / 2.346 GB, free: 122.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.105/7.9, allocations: 353.1 MB / 2.69 GB, free: 155.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006299/7.907, allocations: 5.103 MB / 2.695 GB, free: 154.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004044/7.911, allocations: 2.059 MB / 2.697 GB, free: 154.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002825/7.914, allocations: 3.031 MB / 2.7 GB, free: 154.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.192e-06/7.914, allocations: 0 / 2.7 GB, free: 154.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5963/8.51, allocations: 341.5 MB / 3.034 GB, free: 35.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.11/36.62, allocations: 15.92 kB / 3.034 GB, free: 35.79 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches