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.001292/0.001292, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.00149/0.00149, allocations: 166.3 kB / 24.91 MB, free: 8.77 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.9084/0.9084, allocations: 177 MB / 205.2 MB, free: 5.07 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 273.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.248e-05/1.382e-05, allocations: 2.312 kB / 273.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01489/0.0149, allocations: 14.97 MB / 288.4 MB, free: 2.051 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1087/0.1236, allocations: 5.232 MB / 293.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001325/0.1249, allocations: 136.5 kB / 293.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004428/0.1293, allocations: 4.756 MB / 298.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003135/0.1325, allocations: 2.694 MB / 301.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.1338, allocations: 1.301 MB / 302.5 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005151/0.139, allocations: 9.18 MB / 311.6 MB, free: 8.242 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002875/0.1418, allocations: 5.351 MB / 317 MB, free: 3.781 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004195/0.146, allocations: 5.348 MB / 322.3 MB, free: 14.86 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002938/0.149, allocations: 3.508 MB / 325.9 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004755/0.1494, allocations: 0.5078 MB / 326.4 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.151, allocations: 1.449 MB / 327.8 MB, free: 9.66 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001665/0.1526, allocations: 3.181 MB / 331 MB, free: 6.574 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001375/0.154, allocations: 1.985 MB / 333 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004358/0.1584, allocations: 6.777 MB / 339.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1584, allocations: 0 / 339.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1584, allocations: 0 / 339.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.326e-05/0.1584, allocations: 4 kB / 339.8 MB, free: 14.19 MB / 298.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.006788/0.1652, allocations: 7.05 MB / 346.8 MB, free: 7.453 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.1652, allocations: 11.98 kB / 346.8 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003849/0.1691, allocations: 1.624 MB / 348.4 MB, free: 5.816 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003247/0.1723, allocations: 3.278 MB / 351.7 MB, free: 2.438 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/0.1725, allocations: 341 kB / 352.1 MB, free: 2.102 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004873/0.173, allocations: 456.1 kB / 352.5 MB, free: 1.656 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006729/0.1797, allocations: 7.067 MB / 359.6 MB, free: 9.633 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/0.1798, allocations: 67.45 kB / 359.6 MB, free: 9.566 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003462/0.1801, allocations: 211.8 kB / 359.8 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001812/0.182, allocations: 2.317 MB / 362.2 MB, free: 7.039 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005203/0.1872, allocations: 3.614 MB / 365.8 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02749/0.2147, allocations: 43.01 MB / 408.8 MB, free: 6.867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005917/0.2206, allocations: 2.794 MB / 411.6 MB, free: 4.031 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007537/0.2213, allocations: 0.6417 MB / 412.2 MB, free: 3.379 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007307/0.2286, allocations: 6.241 MB / 418.5 MB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.2287, allocations: 60.56 kB / 418.5 MB, free: 13.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 3.366e-06/0.2287, allocations: 0 / 418.5 MB, free: 13.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.1801/0.4088, allocations: 27.63 MB / 446.1 MB, free: 114.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.4088, allocations: 246.9 kB / 446.4 MB, free: 114.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003096/0.4119, allocations: 4.356 MB / 450.7 MB, free: 113.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003566/0.4123, allocations: 81.52 kB / 450.8 MB, free: 113.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001048/0.4133, allocations: 3.997 MB / 454.8 MB, free: 110.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000723/0.4141, allocations: 1.33 MB / 456.2 MB, free: 109.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001528/0.4156, allocations: 1.614 MB / 457.8 MB, free: 109.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.255e-05/0.4156, allocations: 305.1 kB / 458.1 MB, free: 109.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002494/0.4181, allocations: 1.808 MB / 459.9 MB, free: 109.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003283/0.4214, allocations: 6.34 MB / 466.2 MB, free: 102.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004707/0.4261, allocations: 8.677 MB / 474.9 MB, free: 91.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.089e-05/0.4261, allocations: 52 kB / 474.9 MB, free: 91.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.02643/0.4526, allocations: 10.77 MB / 485.7 MB, free: 80.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.588e-05/0.4526, allocations: 72 kB / 485.8 MB, free: 80.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.796e-05/0.4527, allocations: 164 kB / 485.9 MB, free: 80.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01709/0.4698, allocations: 9.647 MB / 495.6 MB, free: 70.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00263/0.4724, allocations: 1.68 MB / 497.3 MB, free: 69.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02812/0.5005, allocations: 18.72 MB / 0.5039 GB, free: 50.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003912/0.5045, allocations: 355.7 kB / 0.5042 GB, free: 49.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000416/0.5049, allocations: 427.7 kB / 0.5046 GB, free: 49.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * 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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001631/0.5065, allocations: 0.7829 MB / 0.5054 GB, free: 48.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006777/0.5072, allocations: 375.6 kB / 0.5058 GB, free: 48.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02307/0.5303, allocations: 7.32 MB / 0.5129 GB, free: 40.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/0.5303, allocations: 36 kB / 0.513 GB, free: 40.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.558e-05/0.5303, allocations: 31.98 kB / 0.513 GB, free: 40.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.746e-05/0.5303, allocations: 11.95 kB / 0.513 GB, free: 40.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0332/0.5635, allocations: 16.28 MB / 0.5289 GB, free: 24.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.5635, allocations: 12 kB / 0.5289 GB, free: 24.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006033/0.5641, allocations: 287.6 kB / 0.5292 GB, free: 24.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01619/0.5803, allocations: 9.331 MB / 0.5383 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002526/0.5806, allocations: 67.94 kB / 0.5384 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02505/0.6056, allocations: 15.54 MB / 0.5535 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.6056, allocations: 15.94 kB / 0.5535 GB, free: 14.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1298/0.7354, allocations: 8.872 MB / 0.5622 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/0.7367, allocations: 489 kB / 0.5627 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007292/0.7374, allocations: 72.48 kB / 0.5627 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001682/0.7391, allocations: 72.86 kB / 0.5628 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009875/0.7401, allocations: 311.4 kB / 0.5631 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/0.7403, allocations: 75.7 kB / 0.5632 GB, free: 106.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001981/0.7423, allocations: 1.688 MB / 0.5648 GB, free: 106.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7423, allocations: 3.062 kB / 0.5648 GB, free: 106.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006325/0.7486, allocations: 2.461 MB / 0.5672 GB, free: 106.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005535/0.7492, allocations: 214.4 kB / 0.5674 GB, free: 106 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009257/0.7584, allocations: 7.007 MB / 0.5743 GB, free: 105.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000175/0.7586, allocations: 117.2 kB / 0.5744 GB, free: 105.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005782/0.7644, allocations: 3.643 MB / 0.578 GB, free: 104.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002675/0.7671, allocations: 0.9571 MB / 0.5789 GB, free: 104.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/0.7795, allocations: 13.4 MB / 0.592 GB, free: 99.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001388/0.7809, allocations: 1.947 MB / 0.5939 GB, free: 99.24 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00126/0.7821, allocations: 0.6609 MB / 0.5945 GB, free: 98.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000887/0.783, allocations: 0.7318 MB / 0.5952 GB, free: 98.25 MB / 394.7 MB Notification: Performance of SimCode: time 1.172e-06/0.783, allocations: 0 / 0.5952 GB, free: 98.25 MB / 394.7 MB Notification: Performance of Templates: time 0.2118/0.9948, allocations: 139.8 MB / 0.7317 GB, free: 118.8 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.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: 5.2141526262275875]