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.001447/0.001447, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001124/0.001124, allocations: 158.9 kB / 25.75 MB, free: 8.949 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.9573/0.9573, allocations: 158.6 MB / 187.5 MB, free: 2.945 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.783e-06/1.783e-06, allocations: 0 / 251.1 MB, free: 7.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.287e-05/2.466e-05, allocations: 2.312 kB / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01377/0.01379, allocations: 17.98 MB / 269.1 MB, free: 5.746 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.0257, allocations: 6.084 MB / 275.2 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003247/0.02894, allocations: 171.1 kB / 275.3 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007573/0.03652, allocations: 6.756 MB / 282.1 MB, free: 8.695 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006962/0.04348, allocations: 3.052 MB / 285.2 MB, free: 5.629 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004422/0.0479, allocations: 2.526 MB / 287.7 MB, free: 3.098 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01116/0.05906, allocations: 10.12 MB / 297.8 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008627/0.06769, allocations: 7.482 MB / 305.3 MB, free: 1.379 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009293/0.07698, allocations: 4.994 MB / 310.3 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006718/0.0837, allocations: 4.837 MB / 315.1 MB, free: 7.527 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002073/0.08577, allocations: 0.7383 MB / 315.9 MB, free: 6.789 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003825/0.0896, allocations: 1.881 MB / 317.7 MB, free: 4.906 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004621/0.09422, allocations: 4.146 MB / 321.9 MB, free: 0.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007433/0.1016, allocations: 2.61 MB / 324.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01924/0.1209, allocations: 8.472 MB / 333 MB, free: 5.629 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.1209, allocations: 0 / 333 MB, free: 5.629 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1209, allocations: 0 / 333 MB, free: 5.629 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003956/0.1213, allocations: 0 / 333 MB, free: 5.629 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.02948/0.1508, allocations: 9.719 MB / 342.7 MB, free: 11.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.1508, allocations: 11.98 kB / 342.7 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02438/0.1752, allocations: 5.766 MB / 348.5 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01061/0.1858, allocations: 5.849 MB / 354.3 MB, free: 96 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2056/0.3914, allocations: 430.6 kB / 354.7 MB, free: 100.8 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001575/0.393, allocations: 0.5812 MB / 355.3 MB, free: 100.8 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01574/0.4088, allocations: 10.55 MB / 365.9 MB, free: 95.29 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001701/0.4089, allocations: 77.47 kB / 365.9 MB, free: 95.22 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004689/0.4094, allocations: 273.4 kB / 366.2 MB, free: 95 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002255/0.4117, allocations: 2.654 MB / 368.9 MB, free: 92.36 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/0.4243, allocations: 5.976 MB / 374.8 MB, free: 86.42 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04698/0.4712, allocations: 65.19 MB / 440 MB, free: 20.39 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01149/0.4827, allocations: 5.488 MB / 445.5 MB, free: 14.89 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002222/0.485, allocations: 1.512 MB / 447 MB, free: 13.37 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01269/0.4976, allocations: 11.21 MB / 458.2 MB, free: 2.25 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.4977, allocations: 75.33 kB / 458.3 MB, free: 2.168 MB / 330.8 MB Notification: Performance of pre-optimization done (n=281): time 6.672e-06/0.4977, allocations: 0 / 458.3 MB, free: 2.168 MB / 330.8 MB Notification: Performance of matching and sorting (n=374): time 0.2532/0.7509, allocations: 57.5 MB / 0.5037 GB, free: 112.4 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/0.751, allocations: 381.3 kB / 0.5041 GB, free: 112 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007113/0.7581, allocations: 5.556 MB / 0.5095 GB, free: 108 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007432/0.7588, allocations: 80.33 kB / 0.5096 GB, free: 108 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002087/0.7609, allocations: 5.163 MB / 0.5146 GB, free: 104.2 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001621/0.7626, allocations: 1.496 MB / 0.5161 GB, free: 102.8 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001913/0.7645, allocations: 2.038 MB / 0.5181 GB, free: 100.7 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 5.816e-05/0.7645, allocations: 476.8 kB / 0.5185 GB, free: 100.3 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002699/0.7672, allocations: 1.939 MB / 0.5204 GB, free: 98.31 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004724/0.7719, allocations: 9.55 MB / 0.5297 GB, free: 85.38 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009567/0.7815, allocations: 12.35 MB / 0.5418 GB, free: 69.7 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.339e-05/0.7816, allocations: 51.94 kB / 0.5419 GB, free: 69.65 MB / 362.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.02438/0.806, allocations: 13.85 MB / 0.5554 GB, free: 55.77 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.866e-05/0.8061, allocations: 80 kB / 0.5555 GB, free: 55.69 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/0.8062, allocations: 179.1 kB / 0.5556 GB, free: 55.52 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01274/0.819, allocations: 5.94 MB / 0.5614 GB, free: 49.57 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004687/0.8236, allocations: 2.195 MB / 0.5636 GB, free: 47.37 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/0.8421, allocations: 15.81 MB / 0.579 GB, free: 31.21 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006327/0.8484, allocations: 0.8854 MB / 0.5799 GB, free: 30.32 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009947/0.8494, allocations: 0.5234 MB / 0.5804 GB, free: 29.8 MB / 362.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.00224/0.8516, allocations: 0.8879 MB / 0.5813 GB, free: 28.91 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001312/0.853, allocations: 0.6643 MB / 0.5819 GB, free: 28.24 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01409/0.867, allocations: 9.055 MB / 0.5907 GB, free: 19.11 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.352e-05/0.8671, allocations: 47.91 kB / 0.5908 GB, free: 19.06 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-05/0.8671, allocations: 23.94 kB / 0.5908 GB, free: 19.04 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.815e-05/0.8672, allocations: 19.92 kB / 0.5908 GB, free: 19.02 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02624/0.8934, allocations: 19.15 MB / 0.6095 GB, free: 15.5 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.266e-05/0.8934, allocations: 4 kB / 0.6095 GB, free: 15.5 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001937/0.8954, allocations: 0.6047 MB / 0.6101 GB, free: 14.89 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1399/1.035, allocations: 5.527 MB / 0.6155 GB, free: 112.1 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006742/1.036, allocations: 71.09 kB / 0.6156 GB, free: 112.1 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01679/1.053, allocations: 14.57 MB / 0.6298 GB, free: 106.6 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.053, allocations: 5.906 kB / 0.6298 GB, free: 106.6 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01751/1.07, allocations: 10.87 MB / 0.6404 GB, free: 105.6 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002927/1.073, allocations: 1.542 MB / 0.6419 GB, free: 105.6 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009194/1.074, allocations: 65.33 kB / 0.642 GB, free: 105.6 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003347/1.077, allocations: 0.5597 MB / 0.6426 GB, free: 105.6 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001125/1.079, allocations: 262.4 kB / 0.6428 GB, free: 105.6 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003266/1.079, allocations: 100.8 kB / 0.6429 GB, free: 105.6 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.003324/1.082, allocations: 2.561 MB / 0.6454 GB, free: 103.7 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.5e-07/1.082, allocations: 0 / 0.6454 GB, free: 103.7 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.007467/1.09, allocations: 2.638 MB / 0.648 GB, free: 101.1 MB / 378.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.0008544/1.091, allocations: 300.8 kB / 0.6483 GB, free: 100.9 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.01232/1.103, allocations: 7.838 MB / 0.6559 GB, free: 93.2 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/1.103, allocations: 4 kB / 0.6559 GB, free: 93.19 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005417/1.108, allocations: 3.535 MB / 0.6594 GB, free: 89.63 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004355/1.113, allocations: 0.8384 MB / 0.6602 GB, free: 88.85 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04089/1.154, allocations: 15.04 MB / 0.6749 GB, free: 73.78 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002089/1.156, allocations: 2.237 MB / 0.6771 GB, free: 71.51 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.00685/1.162, allocations: 2.302 MB / 0.6793 GB, free: 69.21 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/1.164, allocations: 380.4 kB / 0.6797 GB, free: 68.84 MB / 378.8 MB Notification: Performance of SimCode: time 2.415e-06/1.164, allocations: 0 / 0.6797 GB, free: 68.84 MB / 378.8 MB Notification: Performance of Templates: time 0.2111/1.375, allocations: 110.9 MB / 0.7879 GB, free: 109.4 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.900559435831383]