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.0009917/0.0009917, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.0009839/0.0009839, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 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.9593/0.9593, allocations: 173.3 MB / 201.1 MB, free: 9.359 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.323e-06/1.323e-06, allocations: 3.938 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.1e-05/2.232e-05, allocations: 2.312 kB / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01043/0.01045, allocations: 13.15 MB / 281.1 MB, free: 9.242 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008362/0.01882, allocations: 4.783 MB / 285.9 MB, free: 4.445 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001894/0.02071, allocations: 103.4 kB / 286 MB, free: 4.344 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1345/0.1552, allocations: 4.514 MB / 290.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006769/0.162, allocations: 2.284 MB / 292.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002521/0.1645, allocations: 1.225 MB / 294.1 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009099/0.1736, allocations: 6.641 MB / 300.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005806/0.1794, allocations: 4.724 MB / 305.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004994/0.1844, allocations: 3.305 MB / 308.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003663/0.1881, allocations: 3.221 MB / 311.9 MB, free: 9.242 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001047/0.1891, allocations: 0.5002 MB / 312.4 MB, free: 9.242 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002302/0.1914, allocations: 1.596 MB / 314 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001803/0.1932, allocations: 2.801 MB / 316.8 MB, free: 5.961 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002106/0.1953, allocations: 1.771 MB / 318.6 MB, free: 4.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005343/0.2007, allocations: 6.145 MB / 324.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.2007, allocations: 0 / 324.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2007, allocations: 0 / 324.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001927/0.2009, allocations: 0 / 324.8 MB, free: 14.48 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.00909/0.21, allocations: 6.585 MB / 331.3 MB, free: 7.93 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.21, allocations: 16.92 kB / 331.4 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006797/0.2168, allocations: 3.199 MB / 334.6 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004727/0.2215, allocations: 3.347 MB / 337.9 MB, free: 1.547 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002007/0.2217, allocations: 304.6 kB / 338.2 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006352/0.2224, allocations: 434.8 kB / 338.6 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.2333, allocations: 7.58 MB / 346.2 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001256/0.2334, allocations: 47.44 kB / 346.3 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003513/0.2338, allocations: 188.1 kB / 346.4 MB, free: 8.328 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001891/0.2357, allocations: 2.031 MB / 348.5 MB, free: 6.324 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009081/0.2447, allocations: 4.293 MB / 352.8 MB, free: 2.227 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03579/0.2805, allocations: 47.14 MB / 399.9 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006405/0.2869, allocations: 3.018 MB / 402.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000906/0.2878, allocations: 0.7008 MB / 403.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006018/0.2939, allocations: 4.607 MB / 408.2 MB, free: 9.891 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.89e-05/0.2939, allocations: 57.77 kB / 408.3 MB, free: 9.828 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 3.076e-06/0.2939, allocations: 0 / 408.3 MB, free: 9.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=223): time 0.03168/0.3256, allocations: 15.5 MB / 423.8 MB, free: 10.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.3257, allocations: 213.8 kB / 424 MB, free: 10.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004301/0.33, allocations: 3.893 MB / 427.9 MB, free: 6.184 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/0.3301, allocations: 61.7 kB / 427.9 MB, free: 6.117 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00203/0.3322, allocations: 3.827 MB / 431.8 MB, free: 2.301 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006945/0.3329, allocations: 0.8918 MB / 432.7 MB, free: 1.422 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1513/0.4842, allocations: 1.422 MB / 434.1 MB, free: 117 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.507e-05/0.4842, allocations: 480.5 kB / 434.6 MB, free: 116.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002935/0.4872, allocations: 0.7946 MB / 435.4 MB, free: 116.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003964/0.4911, allocations: 6.448 MB / 441.8 MB, free: 109.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006472/0.4976, allocations: 7.957 MB / 449.8 MB, free: 101.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/0.4977, allocations: 38.53 kB / 449.8 MB, free: 101.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01071/0.5084, allocations: 6.408 MB / 456.2 MB, free: 100.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.456e-05/0.5085, allocations: 67.09 kB / 456.3 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001239/0.5086, allocations: 136.1 kB / 456.4 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002374/0.511, allocations: 1.009 MB / 457.4 MB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/0.5135, allocations: 1.465 MB / 458.9 MB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00481/0.5183, allocations: 4.6 MB / 463.5 MB, free: 98.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003088/0.5214, allocations: 411.2 kB / 463.9 MB, free: 98.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003738/0.5217, allocations: 392.9 kB / 464.3 MB, free: 98.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * 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 (804): * Single equations (assignments): 800 * 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,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001421/0.5232, allocations: 0.6874 MB / 464.9 MB, free: 98.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005269/0.5237, allocations: 452.1 kB / 465.4 MB, free: 98.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003311/0.527, allocations: 2.28 MB / 467.7 MB, free: 98.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.527, allocations: 25.33 kB / 467.7 MB, free: 98.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.527, allocations: 7.438 kB / 467.7 MB, free: 98.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.527, allocations: 7.078 kB / 467.7 MB, free: 98.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009113/0.5361, allocations: 6.973 MB / 474.7 MB, free: 93.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.5362, allocations: 4 kB / 474.7 MB, free: 93.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007241/0.5369, allocations: 329.7 kB / 475 MB, free: 93.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/0.5388, allocations: 0.8053 MB / 475.8 MB, free: 92.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.702e-05/0.5389, allocations: 47.89 kB / 475.9 MB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003499/0.5424, allocations: 3.564 MB / 479.4 MB, free: 89.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.5424, allocations: 8 kB / 479.4 MB, free: 89.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004358/0.5468, allocations: 3.567 MB / 483 MB, free: 86.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000703/0.5475, allocations: 390.4 kB / 483.4 MB, free: 86.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003227/0.5478, allocations: 44 kB / 483.4 MB, free: 86.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009383/0.5487, allocations: 155.8 kB / 483.6 MB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000212/0.549, allocations: 152.9 kB / 483.7 MB, free: 85.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.303e-05/0.549, allocations: 64 kB / 483.8 MB, free: 85.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001954/0.551, allocations: 1.719 MB / 485.5 MB, free: 84 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.551, allocations: 3.938 kB / 485.5 MB, free: 84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004215/0.5552, allocations: 1.344 MB / 486.9 MB, free: 82.67 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (173): * Single equations (assignments): 169 * 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,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004878/0.5557, allocations: 259.6 kB / 487.1 MB, free: 82.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005114/0.5608, allocations: 3.531 MB / 490.6 MB, free: 78.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.5608, allocations: 0 / 490.6 MB, free: 78.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.5619, allocations: 1.057 MB / 491.7 MB, free: 77.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001869/0.5638, allocations: 0.4957 MB / 492.2 MB, free: 77.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.5749, allocations: 9.192 MB / 0.4896 GB, free: 68.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/0.5761, allocations: 1.534 MB / 0.4911 GB, free: 66.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002399/0.5785, allocations: 1.629 MB / 0.4927 GB, free: 64.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005471/0.5791, allocations: 267.1 kB / 0.493 GB, free: 64.55 MB / 378.7 MB Notification: Performance of SimCode: time 1.793e-06/0.5791, allocations: 0 / 0.493 GB, free: 64.55 MB / 378.7 MB Notification: Performance of Templates: time 0.05186/0.6309, allocations: 40.28 MB / 0.5323 GB, free: 24.86 MB / 378.7 MB " [Timeout remaining time 659] 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: 4.347918134182692]