Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.0009354/0.0009354, allocations: 84 kB / 21.43 MB, free: 3.129 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.004477/0.004477, allocations: 145.3 kB / 24.68 MB, free: 9.422 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.86/0.86, allocations: 173.4 MB / 201.2 MB, free: 9.438 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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.484e-05/1.632e-05, allocations: 6.281 kB / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0107/0.01071, allocations: 15.74 MB / 335.4 MB, free: 6.043 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00782/0.01853, allocations: 5.865 MB / 341.3 MB, free: 160 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.01975, allocations: 175.1 kB / 341.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004955/0.0247, allocations: 6.413 MB / 347.9 MB, free: 9.551 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00333/0.02803, allocations: 3.035 MB / 350.9 MB, free: 6.504 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002354/0.03038, allocations: 2.463 MB / 353.4 MB, free: 4.035 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006881/0.03727, allocations: 10.79 MB / 364.2 MB, free: 9.227 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00508/0.04234, allocations: 7.234 MB / 371.4 MB, free: 1.891 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004214/0.04656, allocations: 4.951 MB / 376.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003695/0.05025, allocations: 4.661 MB / 381 MB, free: 8.258 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007835/0.05104, allocations: 0.7383 MB / 381.7 MB, free: 7.52 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001948/0.05299, allocations: 1.881 MB / 383.6 MB, free: 5.637 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002142/0.05513, allocations: 4.091 MB / 387.7 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00213/0.05726, allocations: 2.587 MB / 390.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008587/0.06584, allocations: 13.57 MB / 403.9 MB, free: 1.332 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.06585, allocations: 0 / 403.9 MB, free: 1.332 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.06585, allocations: 0 / 403.9 MB, free: 1.332 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001417/0.06599, allocations: 0 / 403.9 MB, free: 1.332 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01014/0.07613, allocations: 9.21 MB / 413.1 MB, free: 8.039 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.07617, allocations: 12.91 kB / 413.1 MB, free: 8.027 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01987/0.09604, allocations: 5.052 MB / 418.1 MB, free: 2.965 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008722/0.1048, allocations: 6.283 MB / 424.4 MB, free: 12.6 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001933/0.105, allocations: 435.7 kB / 424.9 MB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007223/0.1057, allocations: 0.5821 MB / 425.4 MB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01651/0.1222, allocations: 17.3 MB / 442.7 MB, free: 9.285 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001283/0.1223, allocations: 83.41 kB / 442.8 MB, free: 9.203 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004453/0.1228, allocations: 263.8 kB / 443.1 MB, free: 8.945 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002331/0.1251, allocations: 2.658 MB / 445.7 MB, free: 6.281 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2664/0.3914, allocations: 14.75 MB / 460.5 MB, free: 108.2 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03833/0.4298, allocations: 60.03 MB / 0.5083 GB, free: 51.67 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0113/0.4411, allocations: 8.28 MB / 0.5164 GB, free: 43.41 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002987/0.4441, allocations: 4.735 MB / 0.521 GB, free: 38.66 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01447/0.4585, allocations: 17.48 MB / 0.5381 GB, free: 21.37 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.4586, allocations: 64.5 kB / 0.5381 GB, free: 21.3 MB / 410.8 MB Notification: Performance of pre-optimization done (n=281): time 4.388e-06/0.4586, allocations: 0 / 0.5381 GB, free: 21.3 MB / 410.8 MB Notification: Performance of matching and sorting (n=374): time 0.1319/0.5905, allocations: 76.7 MB / 0.6131 GB, free: 9.051 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/0.5906, allocations: 380.6 kB / 0.6134 GB, free: 8.598 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006749/0.5974, allocations: 6.471 MB / 0.6197 GB, free: 2.312 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006113/0.598, allocations: 77.7 kB / 0.6198 GB, free: 2.23 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.1799/0.7779, allocations: 4.923 MB / 0.6246 GB, free: 164.7 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001881/0.7798, allocations: 1.421 MB / 0.626 GB, free: 164 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002247/0.782, allocations: 1.97 MB / 0.6279 GB, free: 163.7 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 2.746e-05/0.7821, allocations: 303.8 kB / 0.6282 GB, free: 163.4 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004424/0.7865, allocations: 5.992 MB / 0.6341 GB, free: 161.1 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005467/0.792, allocations: 11.22 MB / 0.645 GB, free: 152 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/0.8029, allocations: 17.96 MB / 0.6626 GB, free: 136.9 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.275e-05/0.803, allocations: 48 kB / 0.6626 GB, free: 136.9 MB / 474.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.02261/0.8256, allocations: 23.25 MB / 0.6853 GB, free: 116.2 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.021e-05/0.8256, allocations: 77.91 kB / 0.6854 GB, free: 116.2 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.617e-05/0.8257, allocations: 177.6 kB / 0.6856 GB, free: 116 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01023/0.8359, allocations: 7.441 MB / 0.6928 GB, free: 108.5 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003581/0.8395, allocations: 2.183 MB / 0.695 GB, free: 106.4 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0272/0.8667, allocations: 37.5 MB / 0.7316 GB, free: 68.55 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005575/0.8723, allocations: 0.8618 MB / 0.7324 GB, free: 67.7 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005552/0.8728, allocations: 0.5273 MB / 0.7329 GB, free: 67.17 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.003751/0.8766, allocations: 3.427 MB / 0.7363 GB, free: 63.8 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007268/0.8773, allocations: 0.5588 MB / 0.7368 GB, free: 63.24 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01625/0.8936, allocations: 16.84 MB / 0.7533 GB, free: 46.34 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.167e-05/0.8936, allocations: 52 kB / 0.7533 GB, free: 46.29 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.639e-05/0.8936, allocations: 16 kB / 0.7533 GB, free: 46.27 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.8936, allocations: 23.92 kB / 0.7534 GB, free: 46.25 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02769/0.9213, allocations: 29.65 MB / 0.7823 GB, free: 16.27 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.9213, allocations: 0 / 0.7823 GB, free: 16.27 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/0.9228, allocations: 0.6045 MB / 0.7829 GB, free: 15.66 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00982/0.9327, allocations: 7.013 MB / 0.7898 GB, free: 8.637 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002961/0.9329, allocations: 64 kB / 0.7898 GB, free: 8.574 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1853/1.118, allocations: 35.71 MB / 0.8247 GB, free: 136.8 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.118, allocations: 4 kB / 0.8247 GB, free: 136.8 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02206/1.14, allocations: 24.51 MB / 0.8486 GB, free: 115.3 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/1.142, allocations: 0.6164 MB / 0.8492 GB, free: 115 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005349/1.142, allocations: 63.98 kB / 0.8493 GB, free: 115 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/1.145, allocations: 0.5342 MB / 0.8498 GB, free: 114.4 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008877/1.146, allocations: 262.5 kB / 0.8501 GB, free: 114.2 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002211/1.146, allocations: 92 kB / 0.8502 GB, free: 114.1 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.003893/1.15, allocations: 3.929 MB / 0.854 GB, free: 110.2 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.9e-07/1.15, allocations: 3.562 kB / 0.854 GB, free: 110.2 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.00594/1.156, allocations: 2.624 MB / 0.8566 GB, free: 107.6 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006268/1.156, allocations: 306.7 kB / 0.8569 GB, free: 107.3 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01182/1.168, allocations: 14.19 MB / 0.8707 GB, free: 93.16 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/1.168, allocations: 0 / 0.8707 GB, free: 93.16 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005177/1.173, allocations: 6.157 MB / 0.8767 GB, free: 87.01 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00301/1.176, allocations: 0.8105 MB / 0.8775 GB, free: 86.24 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/1.194, allocations: 20.92 MB / 0.8979 GB, free: 65.29 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003048/1.197, allocations: 4.752 MB / 0.9026 GB, free: 60.51 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001678/1.198, allocations: 440.4 kB / 0.903 GB, free: 60.08 MB / 474.8 MB Notification: Performance of SimCode: time 1.182e-06/1.198, allocations: 0 / 0.903 GB, free: 60.08 MB / 474.8 MB Notification: Performance of Templates: time 0.3121/1.511, allocations: 212.5 MB / 1.111 GB, free: 9.332 MB / 474.8 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.176749765872955]