Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009238/0.0009238, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.895/0.895, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.153e-05/2.302e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.00967/0.009693, allocations: 13.76 MB / 338.3 MB, free: 2.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007668/0.01736, allocations: 4.96 MB / 343.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001432/0.01879, allocations: 135.2 kB / 343.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004066/0.02286, allocations: 4.536 MB / 347.9 MB, free: 8.414 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00389/0.02675, allocations: 2.663 MB / 350.6 MB, free: 5.738 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001504/0.02825, allocations: 1.279 MB / 351.8 MB, free: 4.457 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007258/0.03551, allocations: 9.206 MB / 361.1 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00578/0.04129, allocations: 5.046 MB / 366.1 MB, free: 6.109 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004109/0.0454, allocations: 3.804 MB / 369.9 MB, free: 2.297 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003306/0.04871, allocations: 3.745 MB / 373.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005687/0.04927, allocations: 0.5195 MB / 374.2 MB, free: 14.02 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001605/0.05088, allocations: 1.463 MB / 375.6 MB, free: 12.56 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001693/0.05257, allocations: 3.195 MB / 378.8 MB, free: 9.355 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001801/0.05437, allocations: 2.08 MB / 380.9 MB, free: 7.27 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006679/0.06105, allocations: 10.71 MB / 391.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.06106, allocations: 0 / 391.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.06106, allocations: 4 kB / 391.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001208/0.06118, allocations: 4 kB / 391.6 MB, free: 12.52 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.01036/0.07154, allocations: 8.156 MB / 399.8 MB, free: 4.281 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.07158, allocations: 15.98 kB / 399.8 MB, free: 4.266 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009907/0.07257, allocations: 1.086 MB / 400.9 MB, free: 3.168 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02738/0.09995, allocations: 9.175 MB / 410.1 MB, free: 9.977 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006797/0.1068, allocations: 4.955 MB / 415 MB, free: 4.934 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001702/0.1069, allocations: 337.1 kB / 415.3 MB, free: 4.602 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000936/0.1079, allocations: 468.1 kB / 415.8 MB, free: 4.145 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01663/0.1245, allocations: 14.56 MB / 430.4 MB, free: 4.637 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001515/0.1246, allocations: 71.47 kB / 430.4 MB, free: 4.566 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004369/0.1251, allocations: 215.8 kB / 430.6 MB, free: 4.355 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002993/0.1281, allocations: 2.832 MB / 433.5 MB, free: 1.512 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0153/0.1434, allocations: 12.96 MB / 446.4 MB, free: 4.523 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1909/0.3343, allocations: 55.62 MB / 0.4903 GB, free: 65.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008319/0.3426, allocations: 7.058 MB / 0.4972 GB, free: 58.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002753/0.3454, allocations: 4.545 MB / 0.5016 GB, free: 53.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00917/0.3546, allocations: 11.84 MB / 0.5132 GB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.3546, allocations: 76.58 kB / 0.5132 GB, free: 42.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=326): time 4.498e-06/0.3546, allocations: 0 / 0.5132 GB, free: 42.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=572): time 1.141/1.495, allocations: 413.7 MB / 0.9172 GB, free: 48.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.991e-05/1.495, allocations: 261.7 kB / 0.9175 GB, free: 48.09 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006307/1.502, allocations: 6.265 MB / 0.9236 GB, free: 42.02 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001744/1.503, allocations: 113.7 kB / 0.9237 GB, free: 41.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/1.505, allocations: 4.121 MB / 0.9277 GB, free: 38.17 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.507, allocations: 2.062 MB / 0.9297 GB, free: 36.14 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002532/1.509, allocations: 2.064 MB / 0.9318 GB, free: 34.06 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 2.975e-05/1.509, allocations: 305.1 kB / 0.9321 GB, free: 33.76 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008109/1.517, allocations: 10.88 MB / 0.9427 GB, free: 22.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1673/1.685, allocations: 15.06 MB / 0.9574 GB, free: 146.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02542/1.71, allocations: 27.13 MB / 0.9839 GB, free: 132.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003008/1.711, allocations: 41 kB / 0.9839 GB, free: 132.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.1831/1.894, allocations: 140.2 MB / 1.121 GB, free: 5.152 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.375e-05/1.894, allocations: 64 kB / 1.121 GB, free: 5.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001371/1.894, allocations: 136 kB / 1.121 GB, free: 4.957 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2148/2.109, allocations: 34.56 MB / 1.155 GB, free: 148.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003204/2.112, allocations: 1.485 MB / 1.156 GB, free: 148.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3593/2.471, allocations: 200.8 MB / 1.352 GB, free: 124.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008915/2.48, allocations: 1.798 MB / 1.354 GB, free: 123.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001533/2.482, allocations: 0.527 MB / 1.355 GB, free: 123.4 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.004251/2.486, allocations: 3.082 MB / 1.358 GB, free: 120.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001366/2.487, allocations: 0.6162 MB / 1.358 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3448/2.832, allocations: 136.2 MB / 1.491 GB, free: 143.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.393e-05/2.832, allocations: 60.28 kB / 1.491 GB, free: 143.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001446/2.832, allocations: 58.31 kB / 1.491 GB, free: 143.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001047/2.832, allocations: 30.66 kB / 1.491 GB, free: 143.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.403/3.235, allocations: 203 MB / 1.69 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.75e-05/3.235, allocations: 4.625 kB / 1.69 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009872/3.236, allocations: 326 kB / 1.69 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04233/3.279, allocations: 33.27 MB / 1.722 GB, free: 111 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001634/3.28, allocations: 100 kB / 1.722 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3345/3.615, allocations: 183.6 MB / 1.902 GB, free: 104.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/3.615, allocations: 8 kB / 1.902 GB, free: 104.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3687/3.983, allocations: 152 MB / 2.05 GB, free: 130.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001765/3.985, allocations: 0.6659 MB / 2.051 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002507/3.988, allocations: 97.61 kB / 2.051 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00638/3.994, allocations: 1.565 MB / 2.052 GB, free: 129.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003287/3.997, allocations: 0.5168 MB / 2.053 GB, free: 129 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007625/3.998, allocations: 143.6 kB / 2.053 GB, free: 128.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004455/4.003, allocations: 3.931 MB / 2.057 GB, free: 125.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.81e-07/4.003, allocations: 0 / 2.057 GB, free: 125.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01382/4.016, allocations: 4.051 MB / 2.061 GB, free: 121.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.3745/4.391, allocations: 152.5 MB / 2.21 GB, free: 137 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04041/4.431, allocations: 32.6 MB / 2.242 GB, free: 118.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.329e-05/4.431, allocations: 0 / 2.242 GB, free: 118.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02617/4.458, allocations: 19.55 MB / 2.261 GB, free: 98.57 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006556/4.464, allocations: 0.8294 MB / 2.262 GB, free: 97.76 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8006/5.265, allocations: 354.8 MB / 2.608 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005654/5.27, allocations: 4.617 MB / 2.613 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00316/5.273, allocations: 2.081 MB / 2.615 GB, free: 98.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002798/5.276, allocations: 3.044 MB / 2.618 GB, free: 97.89 MB / 0.4948 GB Notification: Performance of SimCode: time 1.623e-06/5.276, allocations: 4 kB / 2.618 GB, free: 97.89 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6482/5.924, allocations: 347.7 MB / 2.957 GB, free: 108.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.51/23.43, allocations: 14.38 kB / 2.957 GB, free: 108.5 MB / 0.4948 GB " [Timeout remaining time 636] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable j1.phi in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.phi from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! Error: Could not read variable j1.w in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.w from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 25.523788757622242]