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.001228/0.001228, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.000923/0.000923, allocations: 167.9 kB / 25.69 MB, free: 8.453 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.9007/0.9007, allocations: 158.6 MB / 187.6 MB, free: 2.781 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.573e-06/1.573e-06, allocations: 0 / 251.6 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.704e-05/1.862e-05, allocations: 2.312 kB / 251.6 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.03418/0.0342, allocations: 17.5 MB / 269.1 MB, free: 5.637 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01883/0.05302, allocations: 6.319 MB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.05472, allocations: 171.1 kB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005925/0.06065, allocations: 6.631 MB / 282.2 MB, free: 8.473 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004327/0.06497, allocations: 3.099 MB / 285.3 MB, free: 5.359 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003217/0.06819, allocations: 2.51 MB / 287.8 MB, free: 2.844 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00835/0.07654, allocations: 10.08 MB / 297.9 MB, free: 8.746 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007319/0.08386, allocations: 7.187 MB / 305.1 MB, free: 1.434 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008893/0.09275, allocations: 6.001 MB / 311.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005356/0.09811, allocations: 4.607 MB / 315.7 MB, free: 6.805 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00119/0.0993, allocations: 0.7422 MB / 316.4 MB, free: 6.062 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002346/0.1016, allocations: 1.935 MB / 318.4 MB, free: 4.125 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002306/0.104, allocations: 4.15 MB / 322.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002218/0.1062, allocations: 2.61 MB / 325.1 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006649/0.1128, allocations: 8.488 MB / 333.6 MB, free: 4.832 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1128, allocations: 0 / 333.6 MB, free: 4.832 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1128, allocations: 0 / 333.6 MB, free: 4.832 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000168/0.113, allocations: 0 / 333.6 MB, free: 4.832 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.008988/0.122, allocations: 8.247 MB / 341.9 MB, free: 12.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.122, allocations: 11.98 kB / 341.9 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005996/0.128, allocations: 2.034 MB / 343.9 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005312/0.1333, allocations: 4.242 MB / 348.1 MB, free: 6.125 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.1335, allocations: 431.7 kB / 348.6 MB, free: 5.703 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006492/0.1342, allocations: 0.5821 MB / 349.1 MB, free: 5.121 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2152/0.3494, allocations: 8.301 MB / 357.4 MB, free: 90.22 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000161/0.3496, allocations: 76.44 kB / 357.5 MB, free: 90.22 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004469/0.35, allocations: 270 kB / 357.8 MB, free: 90.22 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001774/0.3518, allocations: 2.315 MB / 360.1 MB, free: 90.2 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007326/0.3591, allocations: 4.076 MB / 364.2 MB, free: 90 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02946/0.3886, allocations: 47.95 MB / 412.1 MB, free: 45.12 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00634/0.3949, allocations: 3.019 MB / 415.1 MB, free: 42.14 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007201/0.3956, allocations: 0.6912 MB / 415.8 MB, free: 41.44 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007268/0.4029, allocations: 6.81 MB / 422.6 MB, free: 34.77 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.4029, allocations: 62.69 kB / 422.7 MB, free: 34.7 MB / 330.8 MB Notification: Performance of pre-optimization done (n=227): time 3.948e-06/0.403, allocations: 0 / 422.7 MB, free: 34.7 MB / 330.8 MB Notification: Performance of matching and sorting (n=276): time 0.04189/0.4448, allocations: 17.97 MB / 440.7 MB, free: 17.45 MB / 330.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.4449, allocations: 372.1 kB / 441 MB, free: 17 MB / 330.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003448/0.4484, allocations: 5.111 MB / 446.1 MB, free: 11.91 MB / 330.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001359/0.4485, allocations: 69.7 kB / 446.2 MB, free: 11.84 MB / 330.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.4497, allocations: 4.635 MB / 450.9 MB, free: 7.176 MB / 330.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000532/0.4503, allocations: 1.097 MB / 451.9 MB, free: 6.07 MB / 330.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/0.4515, allocations: 1.72 MB / 453.7 MB, free: 4.336 MB / 330.8 MB Notification: Performance of setup shared object (initialization): time 3.358e-05/0.4515, allocations: 301.1 kB / 454 MB, free: 4.039 MB / 330.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/0.4532, allocations: 1.202 MB / 455.2 MB, free: 2.828 MB / 330.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004194/0.4574, allocations: 6.505 MB / 461.7 MB, free: 9.668 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006363/0.4637, allocations: 8.265 MB / 469.9 MB, free: 14.8 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.318e-05/0.4638, allocations: 56 kB / 470 MB, free: 14.75 MB / 362.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.008202/0.472, allocations: 6.738 MB / 476.7 MB, free: 7.961 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.583e-05/0.4721, allocations: 84 kB / 476.8 MB, free: 7.879 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/0.4722, allocations: 187.8 kB / 477 MB, free: 7.699 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003037/0.4752, allocations: 1.439 MB / 478.4 MB, free: 6.246 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003353/0.4786, allocations: 2.098 MB / 480.5 MB, free: 4.145 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006778/0.4853, allocations: 6.745 MB / 487.3 MB, free: 13.1 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003606/0.4889, allocations: 395.6 kB / 487.7 MB, free: 12.71 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000416/0.4894, allocations: 460 kB / 488.1 MB, free: 12.27 MB / 378.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.001893/0.4912, allocations: 0.841 MB / 489 MB, free: 11.41 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005457/0.4918, allocations: 371.5 kB / 489.3 MB, free: 11.05 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003601/0.4954, allocations: 2.286 MB / 491.6 MB, free: 8.73 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/0.4954, allocations: 28 kB / 491.6 MB, free: 8.703 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.4954, allocations: 8 kB / 491.6 MB, free: 8.695 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.4954, allocations: 11.95 kB / 491.6 MB, free: 8.684 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1337/0.6292, allocations: 8.337 MB / 500 MB, free: 114.6 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.985e-05/0.6293, allocations: 18.5 kB / 0.4883 GB, free: 114.6 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001629/0.6309, allocations: 418.3 kB / 0.4887 GB, free: 114.6 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003917/0.6348, allocations: 1.428 MB / 0.4901 GB, free: 114.6 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002505/0.6351, allocations: 68.2 kB / 0.4901 GB, free: 114.6 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00534/0.6404, allocations: 6.609 MB / 0.4966 GB, free: 110.7 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.6404, allocations: 29.53 kB / 0.4966 GB, free: 110.7 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004586/0.645, allocations: 3.776 MB / 0.5003 GB, free: 108.9 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/0.6463, allocations: 0.7954 MB / 0.5011 GB, free: 108.8 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004546/0.6467, allocations: 72.03 kB / 0.5012 GB, free: 108.8 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.6479, allocations: 73.94 kB / 0.5012 GB, free: 108.8 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003203/0.6482, allocations: 246.6 kB / 0.5015 GB, free: 108.8 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/0.6483, allocations: 94.2 kB / 0.5016 GB, free: 108.8 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001941/0.6502, allocations: 2.034 MB / 0.5035 GB, free: 108.7 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6502, allocations: 0 / 0.5035 GB, free: 108.7 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.005098/0.6553, allocations: 1.901 MB / 0.5054 GB, free: 108.7 MB / 378.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.000595/0.6559, allocations: 304 kB / 0.5057 GB, free: 108.6 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.004824/0.6608, allocations: 4.262 MB / 0.5098 GB, free: 108 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001912/0.6609, allocations: 128.7 kB / 0.51 GB, free: 108 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.6622, allocations: 1.355 MB / 0.5113 GB, free: 107.5 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/0.6653, allocations: 1.176 MB / 0.5124 GB, free: 107.4 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/0.6792, allocations: 13.03 MB / 0.5252 GB, free: 98.14 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001702/0.6809, allocations: 2.141 MB / 0.5273 GB, free: 96.6 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.002002/0.6829, allocations: 0.7805 MB / 0.528 GB, free: 96.08 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/0.6843, allocations: 0.9016 MB / 0.5289 GB, free: 95.24 MB / 378.8 MB Notification: Performance of SimCode: time 1.903e-06/0.6843, allocations: 0 / 0.5289 GB, free: 95.24 MB / 378.8 MB Notification: Performance of Templates: time 0.07949/0.7638, allocations: 69.93 MB / 0.5972 GB, free: 26.68 MB / 378.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 -s gbode -gbm=radauIIA3 -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: 4.828251779079437]