Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.0009431/0.0009431, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.001017/0.001017, allocations: 174.2 kB / 24.92 MB, free: 9.199 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.9743/0.9743, allocations: 177.1 MB / 205.3 MB, free: 5.492 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.75e-05/1.896e-05, allocations: 2.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.009597/0.009616, allocations: 12.69 MB / 286.1 MB, free: 4.566 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1218/0.1314, allocations: 4.938 MB / 291.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001971/0.1334, allocations: 104.2 kB / 291.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004721/0.1381, allocations: 4.474 MB / 295.6 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003524/0.1417, allocations: 2.27 MB / 297.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001526/0.1432, allocations: 1.234 MB / 299.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005188/0.1484, allocations: 6.78 MB / 305.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00341/0.1518, allocations: 4.819 MB / 310.8 MB, free: 8.641 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003462/0.1553, allocations: 4.251 MB / 315 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002446/0.1577, allocations: 3.049 MB / 318.1 MB, free: 2.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005644/0.1583, allocations: 0.5039 MB / 318.6 MB, free: 2.227 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00135/0.1596, allocations: 1.565 MB / 320.1 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001425/0.161, allocations: 2.785 MB / 322.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001337/0.1624, allocations: 1.758 MB / 324.7 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004012/0.1664, allocations: 6.089 MB / 330.8 MB, free: 6.633 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1664, allocations: 4 kB / 330.8 MB, free: 6.629 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1664, allocations: 0 / 330.8 MB, free: 6.629 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001034/0.1665, allocations: 0 / 330.8 MB, free: 6.629 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.00553/0.172, allocations: 5.68 MB / 336.4 MB, free: 1.336 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.1721, allocations: 8.031 kB / 336.4 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003177/0.1752, allocations: 1.416 MB / 337.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002749/0.178, allocations: 2.601 MB / 340.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.1781, allocations: 309.9 kB / 340.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004935/0.1786, allocations: 436.8 kB / 341.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006196/0.1848, allocations: 5.982 MB / 347.2 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-05/0.1849, allocations: 55.52 kB / 347.2 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000301/0.1852, allocations: 187.9 kB / 347.4 MB, free: 6.305 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001445/0.1866, allocations: 1.825 MB / 349.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004901/0.1915, allocations: 3.066 MB / 352.3 MB, free: 1.398 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02271/0.2143, allocations: 34.21 MB / 386.5 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004077/0.2183, allocations: 2.072 MB / 388.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004736/0.2188, allocations: 423.8 kB / 389 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004571/0.2234, allocations: 4.019 MB / 393 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.2234, allocations: 51.5 kB / 393.1 MB, free: 7.359 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 2.866e-06/0.2234, allocations: 4 kB / 393.1 MB, free: 7.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=207): time 0.01561/0.239, allocations: 6.919 MB / 400 MB, free: 464 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.242e-05/0.2391, allocations: 201.2 kB / 400.2 MB, free: 220 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002462/0.2415, allocations: 3.523 MB / 403.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.157e-05/0.2416, allocations: 65.58 kB / 403.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001265/0.2429, allocations: 3.426 MB / 407.2 MB, free: 9.133 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003912/0.2433, allocations: 0.81 MB / 408 MB, free: 8.316 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001043/0.2443, allocations: 1.263 MB / 409.3 MB, free: 7.043 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.9e-05/0.2444, allocations: 301.1 kB / 409.6 MB, free: 6.746 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.2456, allocations: 0.7876 MB / 410.4 MB, free: 5.953 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00278/0.2484, allocations: 4.613 MB / 415 MB, free: 15.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003713/0.2521, allocations: 5.953 MB / 420.9 MB, free: 7.496 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.591e-05/0.2522, allocations: 40 kB / 421 MB, free: 7.457 MB / 378.7 MB Notification: Performance of matching and sorting (n=866) (initialization): time 0.004297/0.2564, allocations: 4.484 MB / 425.4 MB, free: 2.949 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.244e-05/0.2565, allocations: 67.94 kB / 425.5 MB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.796e-05/0.2566, allocations: 140 kB / 425.6 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008071/0.2574, allocations: 446.9 kB / 426.1 MB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002306/0.2597, allocations: 1.466 MB / 427.5 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/0.2617, allocations: 2.456 MB / 430 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.2635, allocations: 287.8 kB / 430.3 MB, free: 14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002812/0.2638, allocations: 336 kB / 430.6 MB, free: 13.68 MB / 394.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.0009876/0.2648, allocations: 0.6575 MB / 431.3 MB, free: 13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002963/0.2651, allocations: 259.7 kB / 431.5 MB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00135/0.2664, allocations: 1.096 MB / 432.6 MB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.2664, allocations: 20 kB / 432.6 MB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.2664, allocations: 4 kB / 432.6 MB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.2664, allocations: 7.969 kB / 432.7 MB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005552/0.272, allocations: 5.149 MB / 437.8 MB, free: 6.234 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.272, allocations: 12.06 kB / 437.8 MB, free: 6.223 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006212/0.2726, allocations: 291.5 kB / 438.1 MB, free: 5.938 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007696/0.2734, allocations: 438.9 kB / 438.5 MB, free: 5.504 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.939e-05/0.2735, allocations: 43.94 kB / 438.6 MB, free: 5.461 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.2749, allocations: 1.734 MB / 440.3 MB, free: 3.637 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.2749, allocations: 11.94 kB / 440.3 MB, free: 3.625 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.2769, allocations: 2.231 MB / 442.5 MB, free: 1.215 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.2772, allocations: 373.2 kB / 442.9 MB, free: 0.8477 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002537/0.2775, allocations: 51.97 kB / 443 MB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006437/0.2781, allocations: 40 kB / 443 MB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.2783, allocations: 156.4 kB / 443.2 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.038e-05/0.2783, allocations: 55.98 kB / 443.2 MB, free: 0.5469 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.1114/0.3897, allocations: 1.323 MB / 444.5 MB, free: 122.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3897, allocations: 1.188 kB / 444.5 MB, free: 122.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004306/0.394, allocations: 1.196 MB / 445.7 MB, free: 122.2 MB / 394.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.0004407/0.3944, allocations: 234.5 kB / 446 MB, free: 122.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003129/0.3976, allocations: 2.724 MB / 448.7 MB, free: 121.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001763/0.3977, allocations: 105 kB / 448.8 MB, free: 121.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006779/0.3984, allocations: 0.647 MB / 449.4 MB, free: 121.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002082/0.4005, allocations: 0.7615 MB / 450.2 MB, free: 121.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009676/0.4102, allocations: 8.964 MB / 459.2 MB, free: 117.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.4113, allocations: 1.515 MB / 460.7 MB, free: 117.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001202/0.4126, allocations: 0.557 MB / 461.2 MB, free: 117.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007939/0.4133, allocations: 0.6185 MB / 461.8 MB, free: 117.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4133, allocations: 0 / 461.8 MB, free: 117.6 MB / 394.7 MB Notification: Performance of Templates: time 0.04466/0.458, allocations: 35.35 MB / 497.2 MB, free: 91.45 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.8580156401731074]