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.001241/0.001241, allocations: 107.2 kB / 17.74 MB, free: 5.332 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.001332/0.001332, allocations: 184.1 kB / 18.66 MB, free: 4.414 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.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3471, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01974/0.3668, allocations: 18.17 MB / 419.6 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01601/0.3829, allocations: 6.053 MB / 425.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004895/0.3878, allocations: 143.6 kB / 425.8 MB, free: 388 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01227/0.4002, allocations: 6.254 MB / 432 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008472/0.4087, allocations: 2.852 MB / 434.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005476/0.4142, allocations: 2.28 MB / 437.2 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01427/0.4285, allocations: 9.49 MB / 446.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0129/0.4414, allocations: 8.411 MB / 455.1 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006826/0.4483, allocations: 3.218 MB / 458.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007764/0.4561, allocations: 4.168 MB / 462.4 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003982/0.4601, allocations: 0.7148 MB / 463.2 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006807/0.467, allocations: 1.912 MB / 465.1 MB, free: 8.906 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006363/0.4734, allocations: 3.858 MB / 468.9 MB, free: 5.039 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009424/0.4828, allocations: 4.138 MB / 473.1 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01961/0.5025, allocations: 13.22 MB / 486.3 MB, free: 3.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.5025, allocations: 0 / 486.3 MB, free: 3.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5025, allocations: 3.938 kB / 486.3 MB, free: 3.609 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005769/0.5031, allocations: 0 / 486.3 MB, free: 3.609 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.02834/0.5315, allocations: 8.925 MB / 495.2 MB, free: 10.6 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.5316, allocations: 8.031 kB / 495.2 MB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04826/0.5798, allocations: 4.847 MB / 0.4884 GB, free: 5.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01715/0.597, allocations: 6.497 MB / 0.4947 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004409/0.5975, allocations: 439.7 kB / 0.4951 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002626/0.6001, allocations: 0.5856 MB / 0.4957 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03536/0.6355, allocations: 17.05 MB / 0.5123 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003098/0.6358, allocations: 79.27 kB / 0.5124 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001219/0.6371, allocations: 267.8 kB / 0.5127 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004499/0.6416, allocations: 2.658 MB / 0.5153 GB, free: 9.145 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03134/0.6729, allocations: 14.77 MB / 0.5297 GB, free: 10.35 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5732/1.246, allocations: 64.25 MB / 0.5924 GB, free: 77.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02158/1.268, allocations: 8.783 MB / 0.601 GB, free: 69.07 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005239/1.273, allocations: 5.07 MB / 0.606 GB, free: 63.99 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02469/1.298, allocations: 18.63 MB / 0.6242 GB, free: 45.35 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/1.298, allocations: 56.56 kB / 0.6242 GB, free: 45.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.052e-06/1.298, allocations: 0 / 0.6242 GB, free: 45.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2592/1.557, allocations: 74 MB / 0.6965 GB, free: 3.242 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000218/1.557, allocations: 380.6 kB / 0.6968 GB, free: 2.789 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009184/1.567, allocations: 6.367 MB / 0.7031 GB, free: 12.41 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001015/1.568, allocations: 81.7 kB / 0.7031 GB, free: 12.33 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003253/1.571, allocations: 4.749 MB / 0.7078 GB, free: 7.516 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001972/1.573, allocations: 1.384 MB / 0.7091 GB, free: 6.113 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003194/1.576, allocations: 1.978 MB / 0.711 GB, free: 4.121 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.958e-05/1.576, allocations: 301.1 kB / 0.7113 GB, free: 3.824 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00893/1.585, allocations: 5.992 MB / 0.7172 GB, free: 13.82 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01332/1.598, allocations: 11.02 MB / 0.728 GB, free: 364 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2911/1.89, allocations: 17.95 MB / 0.7455 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002221/1.89, allocations: 49.28 kB / 0.7455 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04516/1.935, allocations: 23.34 MB / 0.7683 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.935, allocations: 79.06 kB / 0.7684 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002018/1.935, allocations: 169.8 kB / 0.7686 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02166/1.957, allocations: 7.438 MB / 0.7758 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007484/1.965, allocations: 2.191 MB / 0.778 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04288/2.007, allocations: 38.1 MB / 0.8152 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009065/2.017, allocations: 0.7359 MB / 0.8159 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001584/2.018, allocations: 0.5349 MB / 0.8164 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.005613/2.024, allocations: 3.432 MB / 0.8198 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/2.025, allocations: 0.5755 MB / 0.8203 GB, free: 127 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0309/2.056, allocations: 16.96 MB / 0.8369 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.868e-05/2.056, allocations: 44 kB / 0.8369 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.533e-05/2.056, allocations: 24 kB / 0.837 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.588e-05/2.056, allocations: 19.92 kB / 0.837 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04872/2.105, allocations: 32.02 MB / 0.8682 GB, free: 77.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.145e-05/2.105, allocations: 10.89 kB / 0.8683 GB, free: 77.58 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003304/2.108, allocations: 0.6084 MB / 0.8689 GB, free: 76.97 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02001/2.128, allocations: 7.016 MB / 0.8757 GB, free: 69.93 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000835/2.129, allocations: 60.81 kB / 0.8758 GB, free: 69.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04026/2.17, allocations: 36.29 MB / 0.9112 GB, free: 33.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/2.17, allocations: 4 kB / 0.9112 GB, free: 33.15 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03875/2.208, allocations: 24.6 MB / 0.9352 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/2.21, allocations: 0.6381 MB / 0.9359 GB, free: 7.762 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002366/2.213, allocations: 65.97 kB / 0.9359 GB, free: 7.699 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005732/2.218, allocations: 443.3 kB / 0.9363 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2278/2.446, allocations: 248.6 kB / 0.9366 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001086/2.447, allocations: 95.08 kB / 0.9367 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01029/2.458, allocations: 4.047 MB / 0.9406 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.92e-07/2.458, allocations: 3.312 kB / 0.9406 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01059/2.468, allocations: 2.287 MB / 0.9429 GB, free: 178.1 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.001638/2.47, allocations: 286.2 kB / 0.9431 GB, free: 178 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02287/2.493, allocations: 14.89 MB / 0.9577 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/2.493, allocations: 3.938 kB / 0.9577 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01072/2.504, allocations: 6.708 MB / 0.9642 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.007453/2.511, allocations: 0.8881 MB / 0.9651 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03461/2.546, allocations: 20.58 MB / 0.9852 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008865/2.555, allocations: 5.23 MB / 0.9903 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002527/2.557, allocations: 438.8 kB / 0.9907 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.192e-06/2.557, allocations: 2 kB / 0.9907 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.4727/3.03, allocations: 209.7 MB / 1.195 GB, free: 130.1 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/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