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.001127/0.001132, allocations: 115.5 kB / 17.07 MB, free: 6 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.001196/0.001196, allocations: 192 kB / 18 MB, free: 5.082 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.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 47.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2987, allocations: 49.42 MB / 400.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01724/0.316, allocations: 18.19 MB / 418.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.328, allocations: 6.053 MB / 425 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003187/0.3312, allocations: 143.6 kB / 425.1 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01044/0.3417, allocations: 6.262 MB / 431.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006753/0.3485, allocations: 2.928 MB / 434.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004267/0.3528, allocations: 2.273 MB / 436.6 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.3641, allocations: 9.492 MB / 446.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009362/0.3734, allocations: 8.419 MB / 454.5 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004914/0.3784, allocations: 3.214 MB / 457.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005614/0.384, allocations: 4.176 MB / 461.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001859/0.3859, allocations: 0.7148 MB / 462.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004023/0.3899, allocations: 1.9 MB / 464.5 MB, free: 8.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004704/0.3947, allocations: 3.862 MB / 468.3 MB, free: 5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00666/0.4013, allocations: 4.142 MB / 472.5 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0149/0.4163, allocations: 13.23 MB / 485.7 MB, free: 3.566 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4163, allocations: 0 / 485.7 MB, free: 3.566 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4163, allocations: 0 / 485.7 MB, free: 3.566 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003485/0.4167, allocations: 0 / 485.7 MB, free: 3.566 MB / 398.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.02333/0.44, allocations: 8.918 MB / 494.6 MB, free: 10.56 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.58e-05/0.4401, allocations: 12.03 kB / 494.6 MB, free: 10.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04047/0.4806, allocations: 4.844 MB / 499.5 MB, free: 5.691 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.018/0.4987, allocations: 6.505 MB / 0.4941 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004138/0.4991, allocations: 431.7 kB / 0.4945 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002416/0.5016, allocations: 0.5856 MB / 0.4951 GB, free: 14.1 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03429/0.5359, allocations: 17.05 MB / 0.5118 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003617/0.5363, allocations: 79.27 kB / 0.5118 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001811/0.5381, allocations: 267.8 kB / 0.5121 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004349/0.5425, allocations: 2.658 MB / 0.5147 GB, free: 9.102 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03092/0.5734, allocations: 14.78 MB / 0.5291 GB, free: 10.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5703/1.144, allocations: 64.23 MB / 0.5918 GB, free: 77.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01974/1.164, allocations: 8.785 MB / 0.6004 GB, free: 69.05 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005059/1.169, allocations: 5.066 MB / 0.6054 GB, free: 63.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02276/1.191, allocations: 18.63 MB / 0.6236 GB, free: 45.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.902e-05/1.191, allocations: 68.5 kB / 0.6236 GB, free: 45.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.951e-06/1.191, allocations: 0 / 0.6236 GB, free: 45.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2336/1.425, allocations: 73.99 MB / 0.6959 GB, free: 3.219 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001879/1.425, allocations: 376.6 kB / 0.6963 GB, free: 2.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00947/1.435, allocations: 6.368 MB / 0.7025 GB, free: 12.39 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009893/1.436, allocations: 85.98 kB / 0.7026 GB, free: 12.3 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003409/1.439, allocations: 4.752 MB / 0.7072 GB, free: 7.488 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001935/1.441, allocations: 1.388 MB / 0.7085 GB, free: 6.082 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003098/1.444, allocations: 1.974 MB / 0.7105 GB, free: 4.094 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001091/1.444, allocations: 305.1 kB / 0.7108 GB, free: 3.793 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009074/1.453, allocations: 5.992 MB / 0.7166 GB, free: 13.79 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01382/1.467, allocations: 11.02 MB / 0.7274 GB, free: 336 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2634/1.731, allocations: 17.96 MB / 0.7449 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002031/1.731, allocations: 49.06 kB / 0.745 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04088/1.772, allocations: 23.34 MB / 0.7677 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.727e-05/1.772, allocations: 80.22 kB / 0.7678 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/1.772, allocations: 171 kB / 0.768 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01987/1.792, allocations: 7.444 MB / 0.7753 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007532/1.8, allocations: 2.191 MB / 0.7774 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04489/1.845, allocations: 38.09 MB / 0.8146 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01075/1.855, allocations: 0.7504 MB / 0.8153 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002949/1.858, allocations: 0.5234 MB / 0.8158 GB, free: 130.6 MB / 0.5294 GB 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.009819/1.868, allocations: 3.435 MB / 0.8192 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002493/1.871, allocations: 0.5719 MB / 0.8198 GB, free: 127 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03003/1.901, allocations: 16.97 MB / 0.8363 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.474e-05/1.901, allocations: 47.98 kB / 0.8364 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.241e-05/1.901, allocations: 16 kB / 0.8364 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.608e-05/1.901, allocations: 15.94 kB / 0.8364 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05129/1.952, allocations: 32.03 MB / 0.8677 GB, free: 77.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.701e-05/1.952, allocations: 3.938 kB / 0.8677 GB, free: 77.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003065/1.956, allocations: 0.6045 MB / 0.8683 GB, free: 76.97 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01848/1.974, allocations: 7.012 MB / 0.8751 GB, free: 69.94 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001034/1.975, allocations: 60 kB / 0.8752 GB, free: 69.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03955/2.015, allocations: 36.3 MB / 0.9106 GB, free: 33.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/2.015, allocations: 7.938 kB / 0.9106 GB, free: 33.14 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03673/2.051, allocations: 24.6 MB / 0.9347 GB, free: 8.414 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002179/2.054, allocations: 0.6302 MB / 0.9353 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002388/2.056, allocations: 60.25 kB / 0.9353 GB, free: 7.699 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005173/2.061, allocations: 447.3 kB / 0.9358 GB, free: 7.262 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2498/2.311, allocations: 254 kB / 0.936 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009508/2.312, allocations: 93.69 kB / 0.9361 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007096/2.319, allocations: 4.047 MB / 0.94 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/2.319, allocations: 1.031 kB / 0.94 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01029/2.329, allocations: 2.293 MB / 0.9423 GB, free: 178.2 MB / 0.5294 GB 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.001485/2.331, allocations: 277.9 kB / 0.9425 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01982/2.351, allocations: 14.89 MB / 0.9571 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/2.351, allocations: 3.188 kB / 0.9571 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008632/2.36, allocations: 6.717 MB / 0.9636 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004695/2.364, allocations: 0.8805 MB / 0.9645 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02792/2.392, allocations: 19.91 MB / 0.984 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005539/2.398, allocations: 5.268 MB / 0.9891 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006354/2.404, allocations: 3.021 MB / 0.992 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00161/2.406, allocations: 381.2 kB / 0.9924 GB, free: 147 MB / 0.5294 GB Notification: Performance of SimCode: time 2.846e-06/2.406, allocations: 8 kB / 0.9924 GB, free: 147 MB / 0.5294 GB Notification: Performance of Templates: time 0.1463/2.552, allocations: 108.6 MB / 1.098 GB, free: 39.31 MB / 0.5294 GB 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