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.001412/0.001412, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001504/0.001504, allocations: 191 kB / 18.63 MB, free: 4.379 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.312/1.312, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 37.59 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1185, allocations: 49.46 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01717/0.1357, allocations: 18.16 MB / 369.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2081/0.3438, allocations: 6.053 MB / 375.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004551/0.3484, allocations: 143.3 kB / 375.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01157/0.36, allocations: 6.265 MB / 382.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01015/0.3703, allocations: 2.851 MB / 385 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005634/0.3759, allocations: 2.27 MB / 387.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01617/0.3921, allocations: 9.495 MB / 396.7 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0131/0.4053, allocations: 8.418 MB / 405.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007513/0.4128, allocations: 3.183 MB / 408.3 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008065/0.4209, allocations: 4.163 MB / 412.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002987/0.424, allocations: 0.7148 MB / 413.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006207/0.4302, allocations: 1.91 MB / 415.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00614/0.4364, allocations: 3.821 MB / 419 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008982/0.4454, allocations: 4.139 MB / 423.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01864/0.4641, allocations: 13.22 MB / 436.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.131e-05/0.4641, allocations: 4 kB / 436.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4641, allocations: 0 / 436.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005357/0.4647, allocations: 0 / 436.3 MB, free: 13.28 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.02723/0.4919, allocations: 8.903 MB / 445.2 MB, free: 4.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/0.492, allocations: 11.89 kB / 445.2 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04219/0.5342, allocations: 4.85 MB / 450.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01724/0.5515, allocations: 6.505 MB / 456.6 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005172/0.5521, allocations: 433 kB / 457 MB, free: 8.656 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002855/0.5549, allocations: 0.5864 MB / 457.6 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03862/0.5936, allocations: 17.05 MB / 474.6 MB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003964/0.594, allocations: 83.25 kB / 474.7 MB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001578/0.5956, allocations: 273.5 kB / 475 MB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004512/0.6001, allocations: 2.65 MB / 477.6 MB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03101/0.6312, allocations: 14.79 MB / 492.4 MB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4646/1.096, allocations: 64.23 MB / 0.5436 GB, free: 106.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02201/1.118, allocations: 8.78 MB / 0.5522 GB, free: 106 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005654/1.124, allocations: 5.067 MB / 0.5571 GB, free: 105.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02334/1.147, allocations: 18.64 MB / 0.5753 GB, free: 96.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/1.147, allocations: 60.19 kB / 0.5754 GB, free: 96.69 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.36e-06/1.147, allocations: 0 / 0.5754 GB, free: 96.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2201/1.367, allocations: 73.98 MB / 0.6476 GB, free: 28.63 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/1.367, allocations: 380.6 kB / 0.648 GB, free: 28.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008145/1.375, allocations: 6.371 MB / 0.6542 GB, free: 21.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001001/1.376, allocations: 84.52 kB / 0.6543 GB, free: 21.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002264/1.379, allocations: 4.749 MB / 0.6589 GB, free: 16.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001524/1.38, allocations: 1.374 MB / 0.6603 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002639/1.383, allocations: 1.982 MB / 0.6622 GB, free: 13.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.904e-05/1.383, allocations: 301.1 kB / 0.6625 GB, free: 13.31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006335/1.389, allocations: 5.992 MB / 0.6684 GB, free: 7.312 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01079/1.4, allocations: 11.02 MB / 0.6791 GB, free: 9.922 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02228/1.422, allocations: 17.96 MB / 0.6967 GB, free: 5.629 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001548/1.423, allocations: 52 kB / 0.6967 GB, free: 5.578 MB / 478.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2569/1.679, allocations: 23.33 MB / 0.7195 GB, free: 166.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001447/1.68, allocations: 83.03 kB / 0.7196 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002938/1.68, allocations: 173.8 kB / 0.7197 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02272/1.703, allocations: 7.438 MB / 0.727 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007776/1.711, allocations: 2.188 MB / 0.7291 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04621/1.757, allocations: 38.09 MB / 0.7663 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008905/1.766, allocations: 0.7482 MB / 0.7671 GB, free: 150.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001612/1.767, allocations: 0.5228 MB / 0.7676 GB, free: 150.6 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.005397/1.773, allocations: 3.438 MB / 0.7709 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/1.774, allocations: 0.5714 MB / 0.7715 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02904/1.803, allocations: 16.96 MB / 0.7881 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001033/1.803, allocations: 48 kB / 0.7881 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.127e-05/1.803, allocations: 16 kB / 0.7881 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.291e-05/1.803, allocations: 21.06 kB / 0.7881 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05074/1.854, allocations: 32.03 MB / 0.8194 GB, free: 99.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.671e-05/1.854, allocations: 4 kB / 0.8194 GB, free: 99.83 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003186/1.857, allocations: 0.6006 MB / 0.82 GB, free: 99.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01842/1.876, allocations: 7.011 MB / 0.8269 GB, free: 92.21 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008936/1.877, allocations: 64 kB / 0.8269 GB, free: 92.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03885/1.916, allocations: 36.3 MB / 0.8624 GB, free: 55.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.916, allocations: 7.938 kB / 0.8624 GB, free: 55.63 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03565/1.951, allocations: 24.6 MB / 0.8864 GB, free: 31.03 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/1.953, allocations: 0.6318 MB / 0.887 GB, free: 30.37 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00119/1.955, allocations: 72.05 kB / 0.8871 GB, free: 30.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003716/1.958, allocations: 447.2 kB / 0.8875 GB, free: 29.86 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001041/1.959, allocations: 241.3 kB / 0.8877 GB, free: 29.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003643/1.96, allocations: 99.98 kB / 0.8878 GB, free: 29.54 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004848/1.965, allocations: 4.041 MB / 0.8918 GB, free: 25.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.965, allocations: 7.938 kB / 0.8918 GB, free: 25.49 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009083/1.974, allocations: 2.292 MB / 0.894 GB, free: 23.21 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.0009916/1.975, allocations: 285.1 kB / 0.8943 GB, free: 22.94 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1999/2.175, allocations: 14.89 MB / 0.9088 GB, free: 171.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/2.175, allocations: 3.719 kB / 0.9088 GB, free: 171.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01056/2.185, allocations: 6.709 MB / 0.9154 GB, free: 169.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005642/2.191, allocations: 0.8876 MB / 0.9163 GB, free: 169.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02919/2.22, allocations: 19.91 MB / 0.9357 GB, free: 161 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005466/2.226, allocations: 5.265 MB / 0.9408 GB, free: 159.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005998/2.232, allocations: 3.019 MB / 0.9438 GB, free: 158.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/2.233, allocations: 387 kB / 0.9442 GB, free: 158.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.273e-06/2.233, allocations: 0 / 0.9442 GB, free: 158.4 MB / 494.1 MB Notification: Performance of Templates: time 0.1347/2.368, allocations: 105.3 MB / 1.047 GB, free: 55.6 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/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