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.001434/0.001434, allocations: 85.08 kB / 23 MB, free: 1.504 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.001146/0.001146, allocations: 172.8 kB / 26.39 MB, free: 8 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.8824/0.8824, allocations: 158.6 MB / 188.3 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.493e-06/1.493e-06, allocations: 0 / 252.2 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.12e-05/2.269e-05, allocations: 6.25 kB / 252.3 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02822/0.02825, allocations: 17.45 MB / 269.7 MB, free: 5.734 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01129/0.03954, allocations: 6.049 MB / 275.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002771/0.04231, allocations: 171.1 kB / 275.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006814/0.04912, allocations: 6.655 MB / 282.6 MB, free: 8.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006902/0.05603, allocations: 3.052 MB / 285.6 MB, free: 5.754 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003596/0.05962, allocations: 2.514 MB / 288.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009666/0.06929, allocations: 10.13 MB / 298.3 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008556/0.07784, allocations: 7.482 MB / 305.7 MB, free: 1.516 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00756/0.0854, allocations: 6.204 MB / 311.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004691/0.09009, allocations: 4.806 MB / 316.8 MB, free: 6.484 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008473/0.09094, allocations: 0.7383 MB / 317.5 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002275/0.09322, allocations: 1.888 MB / 319.4 MB, free: 3.855 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002843/0.09606, allocations: 4.146 MB / 323.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002509/0.09857, allocations: 2.61 MB / 326.1 MB, free: 13.08 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007371/0.1059, allocations: 8.484 MB / 334.6 MB, free: 4.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1059, allocations: 4 kB / 334.6 MB, free: 4.566 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1059, allocations: 0 / 334.6 MB, free: 4.566 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001491/0.1061, allocations: 0 / 334.6 MB, free: 4.566 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.01099/0.1171, allocations: 9.145 MB / 343.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1171, allocations: 15.97 kB / 343.8 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02118/0.1383, allocations: 4.687 MB / 348.5 MB, free: 6.617 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007599/0.1459, allocations: 4.51 MB / 353 MB, free: 2.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002348/0.1461, allocations: 435.7 kB / 353.4 MB, free: 1.594 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000798/0.1469, allocations: 0.586 MB / 354 MB, free: 1.008 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2352/0.3821, allocations: 9.171 MB / 363.2 MB, free: 89.39 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001496/0.3823, allocations: 78.47 kB / 363.2 MB, free: 89.39 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004348/0.3827, allocations: 268.3 kB / 363.5 MB, free: 89.39 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001865/0.3846, allocations: 2.322 MB / 365.8 MB, free: 89.38 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007201/0.3918, allocations: 4.167 MB / 370 MB, free: 87.86 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0375/0.4293, allocations: 65.25 MB / 435.2 MB, free: 22.97 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007387/0.4367, allocations: 3.279 MB / 438.5 MB, free: 19.66 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008518/0.4375, allocations: 0.8622 MB / 439.4 MB, free: 18.79 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007955/0.4455, allocations: 7.362 MB / 446.7 MB, free: 11.56 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.4455, allocations: 67.33 kB / 446.8 MB, free: 11.49 MB / 330.8 MB Notification: Performance of pre-optimization done (n=227): time 4.018e-06/0.4455, allocations: 0 / 446.8 MB, free: 11.49 MB / 330.8 MB Notification: Performance of matching and sorting (n=276): time 0.0551/0.5006, allocations: 21.29 MB / 468.1 MB, free: 6.68 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001575/0.5008, allocations: 360.1 kB / 468.5 MB, free: 6.246 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005943/0.5067, allocations: 5.674 MB / 474.1 MB, free: 0.8164 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002851/0.507, allocations: 69.7 kB / 474.2 MB, free: 0.7422 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003287/0.5103, allocations: 5.379 MB / 479.6 MB, free: 11.37 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009735/0.5113, allocations: 1.14 MB / 480.7 MB, free: 10.22 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001842/0.5131, allocations: 1.993 MB / 482.7 MB, free: 8.207 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.5132, allocations: 484.8 kB / 483.2 MB, free: 7.73 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/0.5147, allocations: 0.9663 MB / 484.1 MB, free: 6.758 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1462/0.6609, allocations: 9.036 MB / 493.2 MB, free: 98.4 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008186/0.6691, allocations: 10.64 MB / 0.492 GB, free: 88.12 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001252/0.6692, allocations: 53.5 kB / 0.4921 GB, free: 88.12 MB / 362.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01131/0.6805, allocations: 7.875 MB / 0.4998 GB, free: 86.63 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.6806, allocations: 89.62 kB / 0.4998 GB, free: 86.63 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001618/0.6808, allocations: 182.5 kB / 0.5 GB, free: 86.63 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003371/0.6842, allocations: 1.456 MB / 0.5014 GB, free: 86.55 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003219/0.6874, allocations: 1.996 MB / 0.5034 GB, free: 86.37 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006873/0.6942, allocations: 8.531 MB / 0.5117 GB, free: 80.88 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004184/0.6984, allocations: 403.5 kB / 0.5121 GB, free: 80.87 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004499/0.6989, allocations: 457.9 kB / 0.5125 GB, free: 80.85 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.001742/0.7006, allocations: 0.8779 MB / 0.5134 GB, free: 80.31 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006759/0.7013, allocations: 0.6275 MB / 0.514 GB, free: 80.02 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003777/0.7051, allocations: 2.57 MB / 0.5165 GB, free: 78.6 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.248e-05/0.7051, allocations: 28 kB / 0.5165 GB, free: 78.57 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.7051, allocations: 4 kB / 0.5166 GB, free: 78.57 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.7051, allocations: 20.42 kB / 0.5166 GB, free: 78.56 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/0.716, allocations: 9.651 MB / 0.526 GB, free: 71.75 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/0.7161, allocations: 22.88 kB / 0.526 GB, free: 71.73 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000768/0.7168, allocations: 382.2 kB / 0.5264 GB, free: 71.4 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/0.7195, allocations: 1.182 MB / 0.5275 GB, free: 70.56 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/0.7196, allocations: 64 kB / 0.5276 GB, free: 70.5 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005766/0.7254, allocations: 8.388 MB / 0.5358 GB, free: 62.38 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/0.7254, allocations: 27.88 kB / 0.5358 GB, free: 62.35 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005016/0.7304, allocations: 4.36 MB / 0.5401 GB, free: 57.58 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/0.7318, allocations: 0.8486 MB / 0.5409 GB, free: 56.74 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005189/0.7324, allocations: 75.98 kB / 0.541 GB, free: 56.66 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.7337, allocations: 77.52 kB / 0.541 GB, free: 56.59 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003298/0.734, allocations: 240.5 kB / 0.5413 GB, free: 56.35 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.7341, allocations: 91.97 kB / 0.5414 GB, free: 56.26 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.002473/0.7366, allocations: 2.41 MB / 0.5437 GB, free: 53.88 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7366, allocations: 0 / 0.5437 GB, free: 53.88 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.006347/0.743, allocations: 1.906 MB / 0.5456 GB, free: 51.99 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.0005407/0.7435, allocations: 323.4 kB / 0.5459 GB, free: 51.7 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.005185/0.7487, allocations: 4.771 MB / 0.5505 GB, free: 46.89 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.7487, allocations: 7.938 kB / 0.5506 GB, free: 46.89 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.7501, allocations: 1.631 MB / 0.5521 GB, free: 45.21 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002548/0.7526, allocations: 0.8557 MB / 0.553 GB, free: 44.38 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/0.7674, allocations: 13.28 MB / 0.566 GB, free: 30.66 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001698/0.7691, allocations: 2.15 MB / 0.5681 GB, free: 28.48 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.001841/0.7709, allocations: 0.7885 MB / 0.5688 GB, free: 27.69 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.7722, allocations: 0.9705 MB / 0.5698 GB, free: 26.71 MB / 362.8 MB Notification: Performance of SimCode: time 2.063e-06/0.7722, allocations: 0 / 0.5698 GB, free: 26.71 MB / 362.8 MB Notification: Performance of Templates: time 0.2006/0.9728, allocations: 71.65 MB / 0.6397 GB, free: 117.9 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.456977622117847]