Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001517/0.001517, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001862/0.001862, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 60.53 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1109, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2162/0.3271, allocations: 18.04 MB / 376.9 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01342/0.3406, allocations: 6.037 MB / 383 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004905/0.3455, allocations: 145.7 kB / 383.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01158/0.3572, allocations: 6.246 MB / 389.4 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008823/0.366, allocations: 2.813 MB / 392.2 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004688/0.3707, allocations: 2.276 MB / 394.5 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01374/0.3845, allocations: 9.687 MB / 404.1 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0103/0.3948, allocations: 8.408 MB / 412.6 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007495/0.4023, allocations: 3.179 MB / 415.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007625/0.41, allocations: 4.152 MB / 419.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002216/0.4123, allocations: 0.7188 MB / 420.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004939/0.4173, allocations: 1.889 MB / 422.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005246/0.4225, allocations: 3.8 MB / 426.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008092/0.4306, allocations: 4.126 MB / 430.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01691/0.4476, allocations: 13.17 MB / 443.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.4476, allocations: 0 / 443.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4477, allocations: 0 / 443.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005024/0.4482, allocations: 4 kB / 443.6 MB, free: 6.086 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.02592/0.4741, allocations: 8.915 MB / 452.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/0.4742, allocations: 12.03 kB / 452.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04335/0.5175, allocations: 4.847 MB / 457.4 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/0.534, allocations: 6.388 MB / 463.8 MB, free: 1.746 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004382/0.5344, allocations: 431.7 kB / 464.2 MB, free: 1.324 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002416/0.5369, allocations: 0.5858 MB / 464.8 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04155/0.5784, allocations: 17.05 MB / 481.8 MB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005549/0.5791, allocations: 83.25 kB / 481.9 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002886/0.582, allocations: 263.8 kB / 482.1 MB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005121/0.5871, allocations: 2.662 MB / 484.8 MB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03213/0.6193, allocations: 14.79 MB / 499.6 MB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4678/1.087, allocations: 64.22 MB / 0.5506 GB, free: 101.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02303/1.11, allocations: 8.778 MB / 0.5592 GB, free: 100.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006184/1.116, allocations: 5.065 MB / 0.5641 GB, free: 98.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02733/1.144, allocations: 18.63 MB / 0.5823 GB, free: 90.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.754e-05/1.144, allocations: 68.94 kB / 0.5824 GB, free: 90.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.503e-06/1.144, allocations: 0 / 0.5824 GB, free: 90.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2256/1.37, allocations: 73.97 MB / 0.6546 GB, free: 20.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/1.37, allocations: 376.6 kB / 0.655 GB, free: 20.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008169/1.378, allocations: 6.363 MB / 0.6612 GB, free: 14.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001133/1.379, allocations: 86.44 kB / 0.6613 GB, free: 14.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002493/1.382, allocations: 4.747 MB / 0.6659 GB, free: 9.293 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.383, allocations: 1.372 MB / 0.6673 GB, free: 7.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002694/1.386, allocations: 1.982 MB / 0.6692 GB, free: 5.938 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.528e-05/1.386, allocations: 301.1 kB / 0.6695 GB, free: 5.641 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006279/1.392, allocations: 5.992 MB / 0.6753 GB, free: 15.64 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01154/1.404, allocations: 11.02 MB / 0.6861 GB, free: 2.25 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02402/1.428, allocations: 17.95 MB / 0.7036 GB, free: 13.87 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001708/1.428, allocations: 52 kB / 0.7037 GB, free: 13.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.3009/1.729, allocations: 23.35 MB / 0.7265 GB, free: 163.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001655/1.729, allocations: 79.09 kB / 0.7265 GB, free: 163.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003133/1.73, allocations: 173.5 kB / 0.7267 GB, free: 163.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02368/1.753, allocations: 7.444 MB / 0.734 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008413/1.762, allocations: 2.196 MB / 0.7361 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04504/1.807, allocations: 38.08 MB / 0.7733 GB, free: 141.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01082/1.818, allocations: 0.746 MB / 0.774 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002054/1.82, allocations: 0.5282 MB / 0.7746 GB, free: 139.9 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.006397/1.826, allocations: 3.44 MB / 0.7779 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001679/1.828, allocations: 0.5746 MB / 0.7785 GB, free: 136.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02895/1.857, allocations: 16.95 MB / 0.795 GB, free: 119.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.285e-05/1.857, allocations: 48 kB / 0.7951 GB, free: 119.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.415e-05/1.857, allocations: 20 kB / 0.7951 GB, free: 119.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.992e-05/1.857, allocations: 23.86 kB / 0.7951 GB, free: 119.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04885/1.906, allocations: 32.02 MB / 0.8264 GB, free: 86.99 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.447e-05/1.906, allocations: 4.25 kB / 0.8264 GB, free: 86.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003202/1.909, allocations: 0.6084 MB / 0.827 GB, free: 86.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01877/1.928, allocations: 7.011 MB / 0.8338 GB, free: 79.35 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009853/1.929, allocations: 71.92 kB / 0.8339 GB, free: 79.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04072/1.97, allocations: 36.3 MB / 0.8694 GB, free: 42.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.97, allocations: 7.984 kB / 0.8694 GB, free: 42.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03568/2.006, allocations: 24.6 MB / 0.8934 GB, free: 18.17 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/2.007, allocations: 0.6263 MB / 0.894 GB, free: 17.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001449/2.009, allocations: 68.5 kB / 0.8941 GB, free: 17.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00433/2.013, allocations: 443.3 kB / 0.8945 GB, free: 17.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2293/2.243, allocations: 244.9 kB / 0.8947 GB, free: 162.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001167/2.244, allocations: 92.27 kB / 0.8948 GB, free: 162.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.009495/2.253, allocations: 4.044 MB / 0.8988 GB, free: 162.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.21e-07/2.253, allocations: 0 / 0.8988 GB, free: 162.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01311/2.266, allocations: 2.279 MB / 0.901 GB, free: 162.2 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.001506/2.268, allocations: 297.2 kB / 0.9013 GB, free: 162.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02729/2.295, allocations: 14.89 MB / 0.9158 GB, free: 158.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/2.295, allocations: 0 / 0.9158 GB, free: 158.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01073/2.306, allocations: 6.695 MB / 0.9223 GB, free: 155.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007308/2.313, allocations: 0.8774 MB / 0.9232 GB, free: 155.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03153/2.345, allocations: 19.91 MB / 0.9426 GB, free: 144.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008396/2.353, allocations: 5.273 MB / 0.9478 GB, free: 140.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007216/2.361, allocations: 3.013 MB / 0.9507 GB, free: 138.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001733/2.362, allocations: 382.4 kB / 0.9511 GB, free: 138.4 MB / 494.1 MB Notification: Performance of SimCode: time 3.125e-06/2.362, allocations: 0 / 0.9511 GB, free: 138.4 MB / 494.1 MB Notification: Performance of Templates: time 0.1392/2.502, allocations: 105.4 MB / 1.054 GB, free: 35.08 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches