Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009353/0.0009353, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009452/0.0009452, allocations: 146.9 kB / 24.89 MB, free: 9.211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9026/0.9026, allocations: 173.3 MB / 201.5 MB, free: 9.219 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.153e-06/1.153e-06, allocations: 0 / 268.5 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.174e-05/1.29e-05, allocations: 2.312 kB / 268.5 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.008892/0.008905, allocations: 12.74 MB / 281.2 MB, free: 9.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007009/0.01591, allocations: 4.925 MB / 286.1 MB, free: 4.465 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.01694, allocations: 107.4 kB / 286.2 MB, free: 4.359 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1119/0.1289, allocations: 4.488 MB / 290.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005404/0.1343, allocations: 2.298 MB / 293 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.1362, allocations: 1.235 MB / 294.3 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006768/0.143, allocations: 6.624 MB / 300.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00408/0.1471, allocations: 4.825 MB / 305.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003983/0.151, allocations: 4.257 MB / 310 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002708/0.1538, allocations: 3.064 MB / 313 MB, free: 8.996 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007409/0.1545, allocations: 0.5022 MB / 313.5 MB, free: 8.996 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001548/0.156, allocations: 1.576 MB / 315.1 MB, free: 7.648 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.1572, allocations: 2.808 MB / 317.9 MB, free: 4.938 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00153/0.1587, allocations: 1.766 MB / 319.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003926/0.1627, allocations: 6.134 MB / 325.8 MB, free: 13.47 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1627, allocations: 0 / 325.8 MB, free: 13.47 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1627, allocations: 4 kB / 325.8 MB, free: 13.47 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.78e-05/0.1627, allocations: 6.656 kB / 325.8 MB, free: 13.46 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.00542/0.1681, allocations: 5.688 MB / 331.5 MB, free: 8.16 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.1681, allocations: 8.922 kB / 331.5 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003139/0.1713, allocations: 1.417 MB / 332.9 MB, free: 6.789 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002723/0.174, allocations: 2.607 MB / 335.5 MB, free: 4.324 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.1742, allocations: 310.2 kB / 335.8 MB, free: 4.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005771/0.1747, allocations: 436.8 kB / 336.3 MB, free: 3.672 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006275/0.181, allocations: 5.972 MB / 342.2 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/0.1811, allocations: 62.5 kB / 342.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004165/0.1815, allocations: 186.8 kB / 342.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001997/0.1835, allocations: 1.827 MB / 344.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00657/0.1901, allocations: 3.057 MB / 347.4 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02942/0.2195, allocations: 34.2 MB / 381.6 MB, free: 6.598 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005766/0.2253, allocations: 2.071 MB / 383.6 MB, free: 4.559 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000638/0.2259, allocations: 419 kB / 384.1 MB, free: 4.156 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005091/0.231, allocations: 4.013 MB / 388.1 MB, free: 212 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.231, allocations: 54.75 kB / 388.1 MB, free: 152 kB / 330.7 MB Notification: Performance of pre-optimization done (n=165): time 3.757e-06/0.231, allocations: 0 / 388.1 MB, free: 152 kB / 330.7 MB Notification: Performance of matching and sorting (n=207): time 0.01584/0.2469, allocations: 6.906 MB / 395 MB, free: 9.355 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.247, allocations: 201.2 kB / 395.2 MB, free: 9.117 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00279/0.2498, allocations: 3.543 MB / 398.8 MB, free: 5.547 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.874e-05/0.2498, allocations: 57.7 kB / 398.8 MB, free: 5.484 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001382/0.2512, allocations: 3.422 MB / 402.2 MB, free: 2.027 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004249/0.2516, allocations: 0.8216 MB / 403.1 MB, free: 1.199 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001318/0.253, allocations: 1.259 MB / 404.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.953e-05/0.253, allocations: 305.1 kB / 404.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.2542, allocations: 0.7983 MB / 405.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002815/0.257, allocations: 4.603 MB / 410 MB, free: 8.305 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003851/0.2608, allocations: 5.961 MB / 416 MB, free: 420 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.545e-05/0.2609, allocations: 40 kB / 416 MB, free: 380 kB / 362.7 MB Notification: Performance of matching and sorting (n=866) (initialization): time 0.004309/0.2652, allocations: 4.478 MB / 420.5 MB, free: 11.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.2652, allocations: 63.94 kB / 420.6 MB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-05/0.2653, allocations: 144.1 kB / 420.7 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008107/0.2661, allocations: 438.3 kB / 421.1 MB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002497/0.2686, allocations: 1.466 MB / 422.6 MB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.2706, allocations: 2.452 MB / 425.1 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/0.2725, allocations: 287.7 kB / 425.3 MB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002773/0.2728, allocations: 340 kB / 425.7 MB, free: 6.605 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (823): * Single equations (assignments): 819 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.2739, allocations: 0.6457 MB / 426.3 MB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003175/0.2742, allocations: 259.7 kB / 426.6 MB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.2756, allocations: 1.094 MB / 427.7 MB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.2756, allocations: 28 kB / 427.7 MB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.2756, allocations: 4 kB / 427.7 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.2756, allocations: 11.95 kB / 427.7 MB, free: 4.535 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1129/0.3885, allocations: 5.153 MB / 432.9 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.082e-05/0.3885, allocations: 10.31 kB / 432.9 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007769/0.3893, allocations: 297.4 kB / 433.2 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001101/0.3904, allocations: 434.5 kB / 433.6 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.3905, allocations: 45.33 kB / 433.6 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001607/0.3921, allocations: 1.725 MB / 435.4 MB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.281e-05/0.3921, allocations: 18.91 kB / 435.4 MB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002749/0.3949, allocations: 2.231 MB / 437.6 MB, free: 110.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006164/0.3955, allocations: 368.3 kB / 438 MB, free: 110.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003221/0.3958, allocations: 42.98 kB / 438 MB, free: 110.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006801/0.3965, allocations: 44.23 kB / 438 MB, free: 110.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.3967, allocations: 153.4 kB / 438.2 MB, free: 110.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.462e-05/0.3968, allocations: 52.3 kB / 438.2 MB, free: 110.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001468/0.3983, allocations: 1.34 MB / 439.6 MB, free: 110.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3983, allocations: 0 / 439.6 MB, free: 110.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003425/0.4017, allocations: 1.232 MB / 440.8 MB, free: 110.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * 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 (172): * Single equations (assignments): 168 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004187/0.4021, allocations: 243.1 kB / 441.1 MB, free: 110.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00275/0.4048, allocations: 2.723 MB / 443.8 MB, free: 109.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001579/0.405, allocations: 102.2 kB / 443.9 MB, free: 109.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005505/0.4056, allocations: 0.6582 MB / 444.5 MB, free: 109.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.4074, allocations: 0.7728 MB / 445.3 MB, free: 109.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008597/0.416, allocations: 8.972 MB / 454.3 MB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.417, allocations: 1.513 MB / 455.8 MB, free: 105.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001107/0.4181, allocations: 0.5563 MB / 456.4 MB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007922/0.4189, allocations: 0.6237 MB / 457 MB, free: 105.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.4189, allocations: 0 / 457 MB, free: 105.3 MB / 378.7 MB Notification: Performance of Templates: time 0.04514/0.4641, allocations: 35.63 MB / 492.6 MB, free: 74.08 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8461166019551456]