Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000833/0.000833, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008857/0.0008857, allocations: 170 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8388/0.8388, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.249e-05/2.421e-05, allocations: 4.531 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01003/0.01005, allocations: 13.76 MB / 338.3 MB, free: 2.102 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008627/0.01868, allocations: 4.957 MB / 343.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002786/0.02147, allocations: 139.2 kB / 343.4 MB, free: 12.99 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004988/0.02645, allocations: 4.54 MB / 348 MB, free: 8.434 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004814/0.03127, allocations: 2.655 MB / 350.6 MB, free: 5.766 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001647/0.03291, allocations: 1.279 MB / 351.9 MB, free: 4.484 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008135/0.04105, allocations: 9.209 MB / 361.1 MB, free: 11.26 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005611/0.04666, allocations: 5.054 MB / 366.2 MB, free: 6.125 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006172/0.05283, allocations: 3.789 MB / 370 MB, free: 2.328 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004351/0.05718, allocations: 3.749 MB / 373.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001346/0.05853, allocations: 0.5234 MB / 374.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00236/0.06089, allocations: 1.459 MB / 375.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002354/0.06324, allocations: 3.206 MB / 378.9 MB, free: 9.371 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002433/0.06568, allocations: 2.072 MB / 381 MB, free: 7.293 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.07588, allocations: 10.71 MB / 391.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.156e-05/0.07589, allocations: 0 / 391.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.968e-06/0.07589, allocations: 0 / 391.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004778/0.07637, allocations: 0 / 391.7 MB, free: 12.55 MB / 362.7 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.01686/0.09324, allocations: 8.17 MB / 399.8 MB, free: 4.305 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.09328, allocations: 8.031 kB / 399.8 MB, free: 4.297 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001952/0.09523, allocations: 1.082 MB / 400.9 MB, free: 3.203 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02726/0.1225, allocations: 9.168 MB / 410.1 MB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008031/0.1305, allocations: 4.971 MB / 415.1 MB, free: 4.961 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001962/0.1307, allocations: 337 kB / 415.4 MB, free: 4.629 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001297/0.132, allocations: 468.1 kB / 415.9 MB, free: 4.172 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01808/0.1501, allocations: 14.56 MB / 430.4 MB, free: 4.664 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001869/0.1503, allocations: 75.42 kB / 430.5 MB, free: 4.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004707/0.1508, allocations: 211.8 kB / 430.7 MB, free: 4.383 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0033/0.1541, allocations: 2.836 MB / 433.5 MB, free: 1.535 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01749/0.1715, allocations: 12.96 MB / 446.5 MB, free: 4.547 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1933/0.3648, allocations: 55.61 MB / 0.4903 GB, free: 65.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009347/0.3742, allocations: 7.054 MB / 0.4972 GB, free: 58.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003348/0.3775, allocations: 4.554 MB / 0.5017 GB, free: 53.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.3888, allocations: 11.85 MB / 0.5132 GB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.3888, allocations: 68.64 kB / 0.5133 GB, free: 42.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=326): time 5.791e-06/0.3888, allocations: 0 / 0.5133 GB, free: 42.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=572): time 1.146/1.534, allocations: 413.7 MB / 0.9173 GB, free: 48.45 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.227e-05/1.534, allocations: 265.6 kB / 0.9175 GB, free: 48.14 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005826/1.54, allocations: 6.264 MB / 0.9237 GB, free: 42.07 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001735/1.542, allocations: 117.7 kB / 0.9238 GB, free: 41.95 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001462/1.543, allocations: 4.119 MB / 0.9278 GB, free: 38.24 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002634/1.546, allocations: 2.062 MB / 0.9298 GB, free: 36.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003032/1.549, allocations: 2.064 MB / 0.9318 GB, free: 34.13 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 3.195e-05/1.549, allocations: 301.1 kB / 0.9321 GB, free: 33.83 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009471/1.559, allocations: 10.88 MB / 0.9427 GB, free: 22.95 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1732/1.732, allocations: 15.05 MB / 0.9574 GB, free: 146.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02433/1.756, allocations: 27.13 MB / 0.9839 GB, free: 132.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001765/1.756, allocations: 41.66 kB / 0.984 GB, free: 132.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.1788/1.935, allocations: 140.2 MB / 1.121 GB, free: 5.215 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.457e-05/1.935, allocations: 64 kB / 1.121 GB, free: 5.152 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001398/1.935, allocations: 136 kB / 1.121 GB, free: 5.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2122/2.148, allocations: 34.58 MB / 1.155 GB, free: 133 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003019/2.151, allocations: 1.48 MB / 1.156 GB, free: 132.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3184/2.469, allocations: 200.8 MB / 1.352 GB, free: 124.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008341/2.477, allocations: 1.796 MB / 1.354 GB, free: 123.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00156/2.479, allocations: 0.5204 MB / 1.355 GB, free: 123.2 MB / 490.7 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.004641/2.484, allocations: 3.083 MB / 1.358 GB, free: 120.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001454/2.485, allocations: 0.6126 MB / 1.358 GB, free: 120.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3322/2.817, allocations: 136.2 MB / 1.491 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.188e-05/2.817, allocations: 63 kB / 1.491 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001475/2.817, allocations: 62.78 kB / 1.491 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001042/2.818, allocations: 28.58 kB / 1.491 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3687/3.186, allocations: 202.9 MB / 1.69 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.644e-05/3.186, allocations: 5.719 kB / 1.69 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009135/3.187, allocations: 339.8 kB / 1.69 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04156/3.229, allocations: 33.27 MB / 1.722 GB, free: 110.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001496/3.23, allocations: 107.2 kB / 1.722 GB, free: 110.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.319/3.549, allocations: 183.6 MB / 1.902 GB, free: 104.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/3.549, allocations: 13.56 kB / 1.902 GB, free: 104.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3404/3.89, allocations: 152 MB / 2.05 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001836/3.892, allocations: 0.6645 MB / 2.051 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002213/3.894, allocations: 100.1 kB / 2.051 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005079/3.899, allocations: 1.562 MB / 2.053 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00256/3.901, allocations: 0.5188 MB / 2.053 GB, free: 128.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004557/3.902, allocations: 147.9 kB / 2.053 GB, free: 128 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003956/3.906, allocations: 3.93 MB / 2.057 GB, free: 124.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.4e-07/3.906, allocations: 0 / 2.057 GB, free: 124.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009999/3.916, allocations: 4.055 MB / 2.061 GB, free: 120.6 MB / 490.7 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.3691/4.285, allocations: 152.5 MB / 2.21 GB, free: 137.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03645/4.321, allocations: 32.59 MB / 2.242 GB, free: 117 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/4.321, allocations: 4 kB / 2.242 GB, free: 117 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02285/4.344, allocations: 19.56 MB / 2.261 GB, free: 97.45 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005477/4.35, allocations: 0.8323 MB / 2.262 GB, free: 96.64 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7597/5.109, allocations: 354.8 MB / 2.608 GB, free: 103 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005276/5.115, allocations: 4.611 MB / 2.613 GB, free: 99.13 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003446/5.118, allocations: 2.08 MB / 2.615 GB, free: 97.18 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00336/5.121, allocations: 3.052 MB / 2.618 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.272e-06/5.121, allocations: 0 / 2.618 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.637/5.758, allocations: 347.7 MB / 2.957 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.53/22.29, allocations: 6.719 kB / 2.957 GB, free: 106.8 MB / 0.4948 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.983378970995545]