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.001052/0.001052, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001145/0.001146, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.301/1.301, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001014, allocations: 58.58 kB / 300.6 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.09932, allocations: 49.43 MB / 350 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01984/0.1192, allocations: 18.17 MB / 368.2 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2146/0.3338, allocations: 6.045 MB / 374.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004292/0.3382, allocations: 144.1 kB / 374.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01282/0.3511, allocations: 6.274 MB / 380.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01043/0.3615, allocations: 2.843 MB / 383.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005256/0.3668, allocations: 2.28 MB / 385.8 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01337/0.3802, allocations: 9.502 MB / 395.3 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01188/0.3921, allocations: 8.428 MB / 403.7 MB, free: 12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006561/0.3987, allocations: 3.169 MB / 406.9 MB, free: 9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007487/0.4062, allocations: 4.167 MB / 411.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003103/0.4094, allocations: 0.7148 MB / 411.8 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006175/0.4156, allocations: 1.91 MB / 413.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007181/0.4228, allocations: 3.807 MB / 417.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01039/0.4332, allocations: 4.146 MB / 421.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01825/0.4515, allocations: 12.94 MB / 434.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.4515, allocations: 0 / 434.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.4516, allocations: 0 / 434.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005587/0.4521, allocations: 0 / 434.6 MB, free: 13.88 MB / 350.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.03183/0.484, allocations: 8.909 MB / 443.5 MB, free: 5.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.4841, allocations: 12.03 kB / 443.5 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04916/0.5332, allocations: 4.846 MB / 448.4 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01667/0.5499, allocations: 6.375 MB / 454.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004653/0.5504, allocations: 435.2 kB / 455.2 MB, free: 9.383 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002561/0.553, allocations: 0.5796 MB / 455.7 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03588/0.5889, allocations: 17.05 MB / 472.8 MB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003726/0.5893, allocations: 79.27 kB / 472.9 MB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001982/0.5913, allocations: 271.5 kB / 473.1 MB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00458/0.5959, allocations: 2.652 MB / 475.8 MB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03083/0.6267, allocations: 14.78 MB / 490.6 MB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4834/1.11, allocations: 64.51 MB / 0.5421 GB, free: 107.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02408/1.134, allocations: 8.785 MB / 0.5506 GB, free: 106.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005809/1.14, allocations: 5.059 MB / 0.5556 GB, free: 105.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02633/1.167, allocations: 18.64 MB / 0.5738 GB, free: 96.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/1.167, allocations: 59.78 kB / 0.5738 GB, free: 96.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.031e-06/1.167, allocations: 0 / 0.5738 GB, free: 96.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.246/1.413, allocations: 73.99 MB / 0.6461 GB, free: 28.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/1.413, allocations: 380.2 kB / 0.6465 GB, free: 28.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007449/1.42, allocations: 6.367 MB / 0.6527 GB, free: 22.08 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009956/1.421, allocations: 85.14 kB / 0.6528 GB, free: 22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00212/1.423, allocations: 4.757 MB / 0.6574 GB, free: 17.24 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001614/1.425, allocations: 1.366 MB / 0.6587 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002669/1.428, allocations: 1.982 MB / 0.6607 GB, free: 13.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.989e-05/1.428, allocations: 309.1 kB / 0.661 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006446/1.434, allocations: 5.988 MB / 0.6668 GB, free: 7.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009694/1.444, allocations: 11.02 MB / 0.6776 GB, free: 10.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0225/1.466, allocations: 17.96 MB / 0.6951 GB, free: 5.895 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001385/1.467, allocations: 52 kB / 0.6952 GB, free: 5.844 MB / 478.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2459/1.713, allocations: 23.34 MB / 0.718 GB, free: 166.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003314/1.713, allocations: 77.97 kB / 0.718 GB, free: 166.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006126/1.714, allocations: 172.5 kB / 0.7182 GB, free: 166.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02503/1.739, allocations: 7.458 MB / 0.7255 GB, free: 166.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007738/1.746, allocations: 2.194 MB / 0.7276 GB, free: 166.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04338/1.79, allocations: 38.11 MB / 0.7648 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008201/1.798, allocations: 0.7461 MB / 0.7656 GB, free: 150.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/1.799, allocations: 0.5277 MB / 0.7661 GB, free: 150.5 MB / 494.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.004488/1.804, allocations: 3.433 MB / 0.7694 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001124/1.805, allocations: 0.5765 MB / 0.77 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02895/1.834, allocations: 16.96 MB / 0.7866 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.361e-05/1.834, allocations: 48 kB / 0.7866 GB, free: 132.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.128e-05/1.834, allocations: 16 kB / 0.7866 GB, free: 132.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-05/1.834, allocations: 23.77 kB / 0.7866 GB, free: 132.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04789/1.882, allocations: 32.14 MB / 0.818 GB, free: 100.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-05/1.882, allocations: 4.25 kB / 0.818 GB, free: 100.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003016/1.885, allocations: 0.6084 MB / 0.8186 GB, free: 99.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01912/1.904, allocations: 7.035 MB / 0.8255 GB, free: 92.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008952/1.905, allocations: 59.75 kB / 0.8255 GB, free: 92.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03878/1.944, allocations: 36.32 MB / 0.861 GB, free: 55.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/1.944, allocations: 7.938 kB / 0.861 GB, free: 55.81 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03719/1.981, allocations: 24.6 MB / 0.885 GB, free: 31.22 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/1.983, allocations: 0.6263 MB / 0.8857 GB, free: 30.57 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001455/1.984, allocations: 64 kB / 0.8857 GB, free: 30.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004335/1.989, allocations: 443.3 kB / 0.8861 GB, free: 30.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001108/1.99, allocations: 250.6 kB / 0.8864 GB, free: 29.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003426/1.99, allocations: 99.83 kB / 0.8865 GB, free: 29.73 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004953/1.995, allocations: 4.046 MB / 0.8904 GB, free: 25.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.995, allocations: 0 / 0.8904 GB, free: 25.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008137/2.003, allocations: 2.291 MB / 0.8927 GB, free: 23.41 MB / 494.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.0009023/2.004, allocations: 282.2 kB / 0.8929 GB, free: 23.15 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1902/2.194, allocations: 20.05 MB / 0.9125 GB, free: 171.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/2.194, allocations: 1.125 kB / 0.9125 GB, free: 171.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01016/2.204, allocations: 6.721 MB / 0.9191 GB, free: 168.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004961/2.209, allocations: 0.8816 MB / 0.9199 GB, free: 168.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02961/2.239, allocations: 20.1 MB / 0.9396 GB, free: 160.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006343/2.245, allocations: 5.269 MB / 0.9447 GB, free: 156.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006882/2.252, allocations: 3.021 MB / 0.9477 GB, free: 154.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001706/2.254, allocations: 382.7 kB / 0.948 GB, free: 154.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/2.254, allocations: 0 / 0.948 GB, free: 154.4 MB / 494.1 MB Notification: Performance of Templates: time 0.1499/2.404, allocations: 112.9 MB / 1.058 GB, free: 43.26 MB / 494.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