Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.001022/0.001022, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001406/0.001406, allocations: 161.2 kB / 25.6 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9541/0.9541, allocations: 158.6 MB / 187.5 MB, free: 2.809 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 251.5 MB, free: 7.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/2.062e-05, allocations: 2.312 kB / 251.5 MB, free: 7.34 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01528/0.0153, allocations: 17.44 MB / 268.9 MB, free: 5.828 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01227/0.02757, allocations: 6.049 MB / 275 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003436/0.031, allocations: 175.1 kB / 275.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008974/0.03997, allocations: 6.651 MB / 281.8 MB, free: 8.914 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00704/0.04701, allocations: 3.06 MB / 284.8 MB, free: 5.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004564/0.05158, allocations: 2.514 MB / 287.3 MB, free: 3.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01246/0.06404, allocations: 10.13 MB / 297.5 MB, free: 9.172 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007318/0.07135, allocations: 7.475 MB / 305 MB, free: 1.602 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006826/0.07818, allocations: 6.204 MB / 311.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004447/0.08263, allocations: 4.806 MB / 316 MB, free: 6.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009147/0.08354, allocations: 0.7383 MB / 316.7 MB, free: 5.832 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002568/0.08611, allocations: 1.884 MB / 318.6 MB, free: 3.945 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002739/0.08885, allocations: 4.154 MB / 322.7 MB, free: 15.78 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002456/0.09131, allocations: 2.606 MB / 325.3 MB, free: 13.17 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0085/0.09981, allocations: 8.492 MB / 333.8 MB, free: 4.648 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.09981, allocations: 0 / 333.8 MB, free: 4.648 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09981, allocations: 0 / 333.8 MB, free: 4.648 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000166/0.09998, allocations: 0 / 333.8 MB, free: 4.648 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.01344/0.1134, allocations: 9.141 MB / 343 MB, free: 11.42 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.1135, allocations: 15.98 kB / 343 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02656/0.14, allocations: 4.683 MB / 347.7 MB, free: 6.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00767/0.1477, allocations: 4.51 MB / 352.2 MB, free: 2.113 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003053/0.148, allocations: 431.7 kB / 352.6 MB, free: 1.691 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009744/0.149, allocations: 0.586 MB / 353.2 MB, free: 1.105 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2562/0.4052, allocations: 9.178 MB / 362.4 MB, free: 89.41 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003588/0.4055, allocations: 76.92 kB / 362.5 MB, free: 89.41 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008035/0.4063, allocations: 269.2 kB / 362.7 MB, free: 89.41 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002043/0.4084, allocations: 2.318 MB / 365 MB, free: 89.39 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0114/0.4198, allocations: 4.168 MB / 369.2 MB, free: 87.97 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05628/0.4761, allocations: 65.25 MB / 434.5 MB, free: 23.04 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008465/0.4845, allocations: 3.291 MB / 437.7 MB, free: 19.72 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/0.4859, allocations: 0.8578 MB / 438.6 MB, free: 18.85 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01068/0.4966, allocations: 7.364 MB / 446 MB, free: 11.62 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.4966, allocations: 67.33 kB / 446 MB, free: 11.55 MB / 330.8 MB Notification: Performance of pre-optimization done (n=227): time 5.199e-06/0.4966, allocations: 0 / 446 MB, free: 11.55 MB / 330.8 MB Notification: Performance of matching and sorting (n=276): time 0.05159/0.5482, allocations: 21.29 MB / 467.3 MB, free: 6.742 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001832/0.5484, allocations: 364.1 kB / 467.7 MB, free: 6.305 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005785/0.5542, allocations: 5.673 MB / 473.3 MB, free: 0.875 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.5543, allocations: 69.7 kB / 473.4 MB, free: 0.8008 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00292/0.5573, allocations: 5.38 MB / 478.8 MB, free: 11.43 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009454/0.5582, allocations: 1.14 MB / 479.9 MB, free: 10.28 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001918/0.5601, allocations: 1.997 MB / 481.9 MB, free: 8.262 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.5602, allocations: 476.8 kB / 482.4 MB, free: 7.793 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/0.5617, allocations: 0.9702 MB / 483.4 MB, free: 6.816 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1513/0.713, allocations: 9.038 MB / 492.4 MB, free: 98.59 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008939/0.722, allocations: 10.64 MB / 0.4913 GB, free: 88.31 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003895/0.7223, allocations: 51.22 kB / 0.4913 GB, free: 88.31 MB / 362.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01681/0.7392, allocations: 7.878 MB / 0.499 GB, free: 86.81 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.7393, allocations: 84.25 kB / 0.4991 GB, free: 86.81 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000306/0.7396, allocations: 187.6 kB / 0.4993 GB, free: 86.81 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003656/0.7433, allocations: 1.447 MB / 0.5007 GB, free: 86.73 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004411/0.7477, allocations: 1.997 MB / 0.5026 GB, free: 86.55 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007984/0.7557, allocations: 8.544 MB / 0.511 GB, free: 81.05 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007082/0.7628, allocations: 405.2 kB / 0.5114 GB, free: 81.05 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001601/0.7644, allocations: 463.2 kB / 0.5118 GB, free: 80.82 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * 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 (1111): * Single equations (assignments): 1104 * 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,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.003707/0.7681, allocations: 0.8715 MB / 0.5126 GB, free: 80.28 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001632/0.7697, allocations: 0.6238 MB / 0.5133 GB, free: 80 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004274/0.774, allocations: 2.574 MB / 0.5158 GB, free: 78.58 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.883e-05/0.774, allocations: 30.34 kB / 0.5158 GB, free: 78.55 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.774, allocations: 15.42 kB / 0.5158 GB, free: 78.54 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.774, allocations: 10.78 kB / 0.5158 GB, free: 78.54 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01732/0.7914, allocations: 9.641 MB / 0.5252 GB, free: 71.72 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.069e-05/0.7914, allocations: 20 kB / 0.5253 GB, free: 71.7 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.7924, allocations: 393 kB / 0.5256 GB, free: 71.36 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002748/0.7951, allocations: 1.179 MB / 0.5268 GB, free: 70.53 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001943/0.7953, allocations: 68 kB / 0.5268 GB, free: 70.46 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006134/0.8015, allocations: 8.39 MB / 0.535 GB, free: 62.31 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/0.8015, allocations: 31.88 kB / 0.5351 GB, free: 62.28 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005723/0.8072, allocations: 4.369 MB / 0.5393 GB, free: 57.55 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002192/0.8094, allocations: 0.8446 MB / 0.5402 GB, free: 56.71 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007618/0.8102, allocations: 71.97 kB / 0.5402 GB, free: 56.64 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/0.8117, allocations: 84.02 kB / 0.5403 GB, free: 56.55 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003566/0.812, allocations: 240.5 kB / 0.5405 GB, free: 56.32 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.8122, allocations: 79.98 kB / 0.5406 GB, free: 56.24 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.002809/0.815, allocations: 2.41 MB / 0.543 GB, free: 53.86 MB / 362.8 MB Notification: Performance of sort global known variables: time 8e-08/0.815, allocations: 0 / 0.543 GB, free: 53.86 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.007308/0.8223, allocations: 1.904 MB / 0.5448 GB, free: 51.97 MB / 362.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * 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 (219): * Single equations (assignments): 212 * 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,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007958/0.8231, allocations: 332.1 kB / 0.5451 GB, free: 51.67 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.008206/0.8313, allocations: 4.764 MB / 0.5498 GB, free: 46.87 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.25e-05/0.8313, allocations: 4 kB / 0.5498 GB, free: 46.87 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/0.8334, allocations: 1.639 MB / 0.5514 GB, free: 45.18 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005489/0.8389, allocations: 0.8503 MB / 0.5522 GB, free: 44.36 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.019/0.8579, allocations: 13.29 MB / 0.5652 GB, free: 30.63 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002535/0.8604, allocations: 2.149 MB / 0.5673 GB, free: 28.46 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.002527/0.863, allocations: 0.7874 MB / 0.5681 GB, free: 27.67 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001574/0.8645, allocations: 0.9666 MB / 0.569 GB, free: 26.7 MB / 362.8 MB Notification: Performance of SimCode: time 2.254e-06/0.8645, allocations: 0 / 0.569 GB, free: 26.7 MB / 362.8 MB Notification: Performance of Templates: time 0.2233/1.088, allocations: 70.11 MB / 0.6375 GB, free: 119.1 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.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.321546864230186]