Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001138/0.001138, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.00117/0.00117, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 222.9 MB / 241.1 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009915/0.0009914, allocations: 47.55 kB / 300 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.0912, allocations: 49.44 MB / 349.4 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2304/0.3217, allocations: 81.05 MB / 430.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03727/0.359, allocations: 16.53 MB / 447 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01699/0.376, allocations: 371.1 kB / 447.3 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01135/0.3875, allocations: 6.304 MB / 453.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007/0.3945, allocations: 2.693 MB / 456.3 MB, free: 9.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004618/0.3991, allocations: 2.192 MB / 458.5 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01659/0.4157, allocations: 13.63 MB / 472.2 MB, free: 9.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01184/0.4276, allocations: 8.273 MB / 480.4 MB, free: 1.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005568/0.4332, allocations: 2.831 MB / 483.3 MB, free: 14.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006618/0.4399, allocations: 4.444 MB / 487.7 MB, free: 10.24 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001726/0.4416, allocations: 500 kB / 488.2 MB, free: 9.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003964/0.4456, allocations: 1.771 MB / 490 MB, free: 7.977 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003711/0.4494, allocations: 3.635 MB / 493.6 MB, free: 4.332 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004047/0.4534, allocations: 3.912 MB / 497.5 MB, free: 408 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.4647, allocations: 12.74 MB / 0.4983 GB, free: 3.609 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4647, allocations: 0 / 0.4983 GB, free: 3.609 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4647, allocations: 7.984 kB / 0.4983 GB, free: 3.602 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003281/0.4651, allocations: 0 / 0.4983 GB, free: 3.602 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01882/0.4839, allocations: 8.919 MB / 0.507 GB, free: 10.6 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.4839, allocations: 8.031 kB / 0.507 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04164/0.5256, allocations: 4.844 MB / 0.5118 GB, free: 5.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01456/0.5402, allocations: 6.376 MB / 0.518 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003056/0.5405, allocations: 443.6 kB / 0.5184 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001717/0.5422, allocations: 0.578 MB / 0.519 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3194/0.8616, allocations: 17.05 MB / 0.5356 GB, free: 144.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002362/0.8619, allocations: 73.47 kB / 0.5357 GB, free: 144.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000701/0.8626, allocations: 274.7 kB / 0.5359 GB, free: 144.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004531/0.8671, allocations: 2.653 MB / 0.5385 GB, free: 144.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02796/0.8951, allocations: 14.78 MB / 0.553 GB, free: 139.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05825/0.9534, allocations: 64.52 MB / 0.616 GB, free: 80.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01952/0.973, allocations: 8.775 MB / 0.6245 GB, free: 71.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004496/0.9775, allocations: 5.07 MB / 0.6295 GB, free: 66.78 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02144/0.9989, allocations: 18.63 MB / 0.6477 GB, free: 47.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.999, allocations: 76.5 kB / 0.6478 GB, free: 47.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.36e-06/0.999, allocations: 0 / 0.6478 GB, free: 47.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.42/1.419, allocations: 73.98 MB / 0.72 GB, free: 150.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/1.419, allocations: 371.1 kB / 0.7204 GB, free: 150.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009053/1.428, allocations: 6.371 MB / 0.7266 GB, free: 148.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001012/1.429, allocations: 89.23 kB / 0.7267 GB, free: 148.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00249/1.432, allocations: 4.749 MB / 0.7313 GB, free: 145.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001589/1.433, allocations: 1.379 MB / 0.7327 GB, free: 144.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002727/1.436, allocations: 1.977 MB / 0.7346 GB, free: 143.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.694e-05/1.436, allocations: 301.1 kB / 0.7349 GB, free: 143 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006836/1.443, allocations: 5.994 MB / 0.7407 GB, free: 140.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008624/1.452, allocations: 11.02 MB / 0.7515 GB, free: 131.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01665/1.468, allocations: 17.95 MB / 0.769 GB, free: 117.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001176/1.469, allocations: 52 kB / 0.7691 GB, free: 117.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04238/1.511, allocations: 23.34 MB / 0.7919 GB, free: 94.15 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002059/1.511, allocations: 80 kB / 0.7919 GB, free: 94.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000254/1.511, allocations: 172 kB / 0.7921 GB, free: 93.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02092/1.532, allocations: 7.448 MB / 0.7994 GB, free: 86.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006918/1.539, allocations: 2.183 MB / 0.8015 GB, free: 84.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0411/1.58, allocations: 35.58 MB / 0.8363 GB, free: 48.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009183/1.59, allocations: 0.7448 MB / 0.837 GB, free: 47.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/1.591, allocations: 0.5234 MB / 0.8375 GB, free: 47.03 MB / 462.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.005907/1.597, allocations: 3.436 MB / 0.8408 GB, free: 43.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001688/1.599, allocations: 0.5669 MB / 0.8414 GB, free: 43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03017/1.629, allocations: 16.96 MB / 0.858 GB, free: 25.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.46e-05/1.629, allocations: 51.98 kB / 0.858 GB, free: 25.93 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.593e-05/1.629, allocations: 20 kB / 0.858 GB, free: 25.91 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.437e-05/1.629, allocations: 15.94 kB / 0.858 GB, free: 25.89 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2312/1.861, allocations: 32.15 MB / 0.8894 GB, free: 134.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.059e-05/1.861, allocations: 0 / 0.8894 GB, free: 134.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003065/1.864, allocations: 0.603 MB / 0.89 GB, free: 134.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01919/1.883, allocations: 7.118 MB / 0.897 GB, free: 133 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006861/1.884, allocations: 70.47 kB / 0.897 GB, free: 133 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03827/1.922, allocations: 33.84 MB / 0.9301 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.922, allocations: 4 kB / 0.9301 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03491/1.957, allocations: 24.6 MB / 0.9541 GB, free: 89.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/1.959, allocations: 0.6265 MB / 0.9547 GB, free: 88.76 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00163/1.96, allocations: 63.94 kB / 0.9548 GB, free: 88.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004153/1.965, allocations: 451.2 kB / 0.9552 GB, free: 88.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001148/1.966, allocations: 242.6 kB / 0.9555 GB, free: 88.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003535/1.966, allocations: 95.98 kB / 0.9556 GB, free: 87.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004729/1.971, allocations: 4.044 MB / 0.9595 GB, free: 83.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.971, allocations: 3.719 kB / 0.9595 GB, free: 83.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007385/1.978, allocations: 2.299 MB / 0.9618 GB, free: 81.61 MB / 462.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.0008146/1.979, allocations: 270.7 kB / 0.962 GB, free: 81.35 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01748/1.997, allocations: 14.85 MB / 0.9765 GB, free: 66.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.997, allocations: 0 / 0.9765 GB, free: 66.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009189/2.006, allocations: 6.706 MB / 0.9831 GB, free: 59.86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007169/2.013, allocations: 0.8298 MB / 0.9839 GB, free: 59.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02917/2.042, allocations: 23.5 MB / 1.007 GB, free: 35.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006653/2.049, allocations: 5.263 MB / 1.012 GB, free: 30.22 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006473/2.055, allocations: 3.024 MB / 1.015 GB, free: 27.19 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/2.057, allocations: 379.4 kB / 1.015 GB, free: 26.82 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/2.057, allocations: 0 / 1.015 GB, free: 26.82 MB / 462.1 MB Notification: Performance of Templates: time 0.319/2.376, allocations: 108.6 MB / 1.121 GB, free: 79.86 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches