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.001687/0.001687, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 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.001773/0.001773, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 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 1.445/1.445, allocations: 230.2 MB / 254.5 MB, free: 15.42 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001869/0.001869, allocations: 63.89 kB / 373.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1088, allocations: 53.32 MB / 426.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01909/0.1279, allocations: 15.93 MB / 442.6 MB, free: 5.012 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2309/0.3589, allocations: 5.145 MB / 447.7 MB, free: 7.648 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003045/0.3619, allocations: 114.1 kB / 447.9 MB, free: 7.648 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008039/0.3699, allocations: 4.474 MB / 452.3 MB, free: 7.629 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006938/0.3769, allocations: 2.577 MB / 454.9 MB, free: 7.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002695/0.3796, allocations: 1.148 MB / 456.1 MB, free: 7.492 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01416/0.3937, allocations: 8.115 MB / 464.2 MB, free: 6.375 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006788/0.4005, allocations: 4.526 MB / 468.7 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005675/0.4062, allocations: 2.472 MB / 471.2 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006185/0.4124, allocations: 3.62 MB / 474.8 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0023/0.4147, allocations: 0.5032 MB / 475.3 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004273/0.419, allocations: 1.526 MB / 476.8 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004504/0.4235, allocations: 3.04 MB / 479.9 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006926/0.4304, allocations: 3.423 MB / 483.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0145/0.4449, allocations: 10.56 MB / 493.8 MB, free: 4.258 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4449, allocations: 0 / 493.8 MB, free: 4.258 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.4449, allocations: 0 / 493.8 MB, free: 4.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003839/0.4453, allocations: 0 / 493.8 MB, free: 4.258 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.02271/0.468, allocations: 8.101 MB / 0.4902 GB, free: 12.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.468, allocations: 8.031 kB / 0.4902 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002701/0.4707, allocations: 1.082 MB / 0.4912 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05203/0.5228, allocations: 8.557 MB / 0.4996 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01464/0.5374, allocations: 5.544 MB / 0.505 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003572/0.5378, allocations: 336 kB / 0.5053 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001962/0.5397, allocations: 474.8 kB / 0.5058 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0296/0.5693, allocations: 14.47 MB / 0.5199 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002561/0.5696, allocations: 79.41 kB / 0.52 GB, free: 12.97 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008492/0.5704, allocations: 215.5 kB / 0.5202 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005631/0.5761, allocations: 2.829 MB / 0.523 GB, free: 9.988 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02737/0.6034, allocations: 13.01 MB / 0.5357 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0854/0.6888, allocations: 58.12 MB / 0.5924 GB, free: 1.656 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01829/0.7071, allocations: 7.344 MB / 0.5996 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006685/0.7138, allocations: 4.518 MB / 0.604 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02685/0.7407, allocations: 12.69 MB / 0.6164 GB, free: 8.883 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.29e-05/0.7407, allocations: 72.64 kB / 0.6165 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=326): time 6.953e-06/0.7407, allocations: 0 / 0.6165 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of matching and sorting (n=572): time 1.959/2.7, allocations: 411.4 MB / 1.018 GB, free: 23.51 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/2.7, allocations: 265.6 kB / 1.018 GB, free: 23.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007066/2.707, allocations: 5.497 MB / 1.024 GB, free: 17.81 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001927/2.709, allocations: 113.7 kB / 1.024 GB, free: 17.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002448/2.712, allocations: 4.153 MB / 1.028 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002975/2.715, allocations: 2.093 MB / 1.03 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003932/2.718, allocations: 2.084 MB / 1.032 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.496e-05/2.719, allocations: 305.1 kB / 1.032 GB, free: 9.516 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2669/2.985, allocations: 10.88 MB / 1.043 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01769/3.003, allocations: 14.99 MB / 1.058 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04592/3.049, allocations: 27.12 MB / 1.084 GB, free: 132 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003398/3.049, allocations: 41.72 kB / 1.084 GB, free: 132 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.3151/3.365, allocations: 140.2 MB / 1.221 GB, free: 10.24 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.994e-05/3.365, allocations: 64 kB / 1.221 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/3.365, allocations: 144.2 kB / 1.221 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3077/3.672, allocations: 34.58 MB / 1.255 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004886/3.677, allocations: 1.476 MB / 1.256 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.498/4.175, allocations: 203.2 MB / 1.455 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01383/4.189, allocations: 1.704 MB / 1.457 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002701/4.192, allocations: 0.5247 MB / 1.457 GB, free: 141.4 MB / 0.545 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.008526/4.2, allocations: 3.081 MB / 1.46 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001967/4.202, allocations: 0.6145 MB / 1.461 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.284/4.486, allocations: 136.2 MB / 1.594 GB, free: 49.26 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.412e-05/4.486, allocations: 60 kB / 1.594 GB, free: 49.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001653/4.487, allocations: 56 kB / 1.594 GB, free: 49.15 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001252/4.487, allocations: 34.78 kB / 1.594 GB, free: 49.12 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5993/5.086, allocations: 205.6 MB / 1.795 GB, free: 78.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.548e-05/5.086, allocations: 9.641 kB / 1.795 GB, free: 78.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/5.088, allocations: 335.4 kB / 1.795 GB, free: 78.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06546/5.153, allocations: 33.29 MB / 1.827 GB, free: 45 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001571/5.155, allocations: 104.9 kB / 1.828 GB, free: 44.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4263/5.581, allocations: 185.9 MB / 2.009 GB, free: 66.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/5.581, allocations: 10.62 kB / 2.009 GB, free: 66.78 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5335/6.114, allocations: 152 MB / 2.158 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/6.116, allocations: 0.6645 MB / 2.158 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001988/6.118, allocations: 98.5 kB / 2.158 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007981/6.126, allocations: 1.483 MB / 2.16 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003206/6.129, allocations: 0.4912 MB / 2.16 GB, free: 116.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001041/6.13, allocations: 148 kB / 2.16 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005042/6.135, allocations: 3.513 MB / 2.164 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/6.135, allocations: 3.094 kB / 2.164 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01233/6.148, allocations: 3.783 MB / 2.167 GB, free: 110.7 MB / 0.5606 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.5691/6.717, allocations: 152.5 MB / 2.316 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05162/6.768, allocations: 32.62 MB / 2.348 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/6.768, allocations: 6.188 kB / 2.348 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03464/6.803, allocations: 19.56 MB / 2.367 GB, free: 116.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007354/6.81, allocations: 0.8327 MB / 2.368 GB, free: 115.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.138/7.949, allocations: 352.8 MB / 2.713 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007928/7.957, allocations: 5.093 MB / 2.718 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004992/7.962, allocations: 2.066 MB / 2.72 GB, free: 144.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003892/7.966, allocations: 3.025 MB / 2.723 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of SimCode: time 2.164e-06/7.966, allocations: 0 / 2.723 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5994/8.565, allocations: 336.1 MB / 3.051 GB, free: 38.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.04/37.61, allocations: 16.81 kB / 3.051 GB, free: 38.2 MB / 0.5606 GB " [Timeout remaining time 622] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 41.99890102399513]