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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,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=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 108.4 kB / 18.34 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 47.94 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09316/0.09439, allocations: 46.63 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02074/0.1152, allocations: 18.59 MB / 347.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.1281, allocations: 6.146 MB / 353.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002873/0.131, allocations: 143.6 kB / 353.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01027/0.1413, allocations: 6.262 MB / 359.9 MB, free: 4.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006501/0.1478, allocations: 2.856 MB / 362.7 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00433/0.1522, allocations: 2.284 MB / 365 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01148/0.1637, allocations: 8.835 MB / 373.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2119/0.3756, allocations: 8.436 MB / 382.3 MB, free: 16.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006488/0.3821, allocations: 3.197 MB / 385.5 MB, free: 16.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007377/0.3895, allocations: 4.187 MB / 389.6 MB, free: 16.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002072/0.3916, allocations: 0.7165 MB / 390.4 MB, free: 16.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004587/0.3962, allocations: 1.898 MB / 392.3 MB, free: 16.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004662/0.4009, allocations: 3.832 MB / 396.1 MB, free: 16.01 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008811/0.4097, allocations: 4.151 MB / 400.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01362/0.4233, allocations: 13.24 MB / 413.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.4234, allocations: 3.625 kB / 413.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4234, allocations: 0 / 413.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004316/0.4239, allocations: 3.125 kB / 413.5 MB, free: 7.586 MB / 318.1 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.01801/0.4419, allocations: 8.941 MB / 422.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.4419, allocations: 9.781 kB / 422.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04206/0.484, allocations: 4.85 MB / 427.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01776/0.5018, allocations: 6.693 MB / 434 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003361/0.5022, allocations: 435.2 kB / 434.4 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002087/0.5043, allocations: 0.5895 MB / 435 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03297/0.5372, allocations: 17.06 MB / 452.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002527/0.5375, allocations: 73.97 kB / 452.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009514/0.5385, allocations: 269.4 kB / 452.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004499/0.543, allocations: 2.663 MB / 455.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0304/0.5734, allocations: 14.78 MB / 469.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08095/0.6544, allocations: 64.35 MB / 0.5217 GB, free: 2.117 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02254/0.677, allocations: 8.772 MB / 0.5302 GB, free: 9.203 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005912/0.6829, allocations: 5.067 MB / 0.5352 GB, free: 4.133 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2751/0.9581, allocations: 18.64 MB / 0.5534 GB, free: 151 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.996e-05/0.9582, allocations: 70.02 kB / 0.5534 GB, free: 150.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.622e-06/0.9582, allocations: 1.188 kB / 0.5535 GB, free: 150.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2269/1.185, allocations: 74.05 MB / 0.6258 GB, free: 94.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/1.185, allocations: 376.6 kB / 0.6261 GB, free: 93.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007752/1.193, allocations: 6.431 MB / 0.6324 GB, free: 87.47 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008642/1.194, allocations: 85.7 kB / 0.6325 GB, free: 87.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002005/1.196, allocations: 4.756 MB / 0.6371 GB, free: 82.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001308/1.197, allocations: 1.379 MB / 0.6385 GB, free: 81.26 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002463/1.2, allocations: 1.973 MB / 0.6404 GB, free: 79.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.221e-05/1.2, allocations: 301.1 kB / 0.6407 GB, free: 78.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006236/1.206, allocations: 5.992 MB / 0.6465 GB, free: 72.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007958/1.214, allocations: 11.02 MB / 0.6573 GB, free: 59.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01587/1.23, allocations: 17.95 MB / 0.6748 GB, free: 39.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-05/1.23, allocations: 48 kB / 0.6749 GB, free: 39.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2248/1.455, allocations: 23.34 MB / 0.6977 GB, free: 132.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003131/1.455, allocations: 80.22 kB / 0.6978 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004716/1.456, allocations: 178.7 kB / 0.6979 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02358/1.479, allocations: 7.442 MB / 0.7052 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008295/1.488, allocations: 2.193 MB / 0.7073 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04374/1.531, allocations: 38.09 MB / 0.7445 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008909/1.54, allocations: 0.7528 MB / 0.7453 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001278/1.542, allocations: 0.5229 MB / 0.7458 GB, free: 116.4 MB / 446.1 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.005005/1.547, allocations: 3.433 MB / 0.7491 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/1.548, allocations: 0.5749 MB / 0.7497 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02831/1.576, allocations: 16.96 MB / 0.7663 GB, free: 98.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.24e-05/1.576, allocations: 48 kB / 0.7663 GB, free: 97.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.652e-05/1.576, allocations: 16 kB / 0.7663 GB, free: 97.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-05/1.576, allocations: 19.92 kB / 0.7663 GB, free: 97.94 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04644/1.623, allocations: 32.06 MB / 0.7976 GB, free: 65.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.656e-05/1.623, allocations: 8.062 kB / 0.7977 GB, free: 65.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/1.626, allocations: 0.5967 MB / 0.7982 GB, free: 65.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01832/1.644, allocations: 7.015 MB / 0.8051 GB, free: 57.99 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008265/1.645, allocations: 64 kB / 0.8051 GB, free: 57.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0397/1.685, allocations: 36.3 MB / 0.8406 GB, free: 21.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/1.685, allocations: 7.938 kB / 0.8406 GB, free: 21.42 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2213/1.906, allocations: 24.6 MB / 0.8646 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006215/1.912, allocations: 1.659 MB / 0.8662 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002919/1.915, allocations: 63.34 kB / 0.8663 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005988/1.921, allocations: 448.4 kB / 0.8667 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001363/1.923, allocations: 245.7 kB / 0.867 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004362/1.923, allocations: 95.42 kB / 0.8671 GB, free: 131 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007608/1.931, allocations: 4.083 MB / 0.871 GB, free: 129.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.931, allocations: 0 / 0.871 GB, free: 129.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009001/1.94, allocations: 2.294 MB / 0.8733 GB, free: 129.4 MB / 446.1 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.0009951/1.941, allocations: 288.7 kB / 0.8736 GB, free: 129.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.018/1.959, allocations: 14.89 MB / 0.8881 GB, free: 123.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/1.959, allocations: 3.219 kB / 0.8881 GB, free: 123.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008294/1.967, allocations: 6.701 MB / 0.8946 GB, free: 120.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004445/1.972, allocations: 0.8851 MB / 0.8955 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0267/1.998, allocations: 20 MB / 0.915 GB, free: 106.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006427/2.005, allocations: 5.295 MB / 0.9202 GB, free: 102.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006151/2.011, allocations: 3.016 MB / 0.9232 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001626/2.013, allocations: 388.5 kB / 0.9235 GB, free: 99.81 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/2.013, allocations: 0 / 0.9235 GB, free: 99.81 MB / 446.1 MB Notification: Performance of Templates: time 0.3096/2.322, allocations: 105.5 MB / 1.027 GB, free: 120.9 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches