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.001622/0.001622, allocations: 115.2 kB / 17.06 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.001978/0.001978, allocations: 191 kB / 18 MB, free: 5.078 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.483/1.483, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000909/0.000909, allocations: 39.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3077, allocations: 49.44 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01887/0.3266, allocations: 18.17 MB / 418.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01276/0.3394, allocations: 6.048 MB / 424.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003707/0.3431, allocations: 143.6 kB / 425.1 MB, free: 432 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01127/0.3544, allocations: 6.262 MB / 431.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009018/0.3635, allocations: 2.855 MB / 434.2 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005378/0.3689, allocations: 2.273 MB / 436.5 MB, free: 5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01301/0.3819, allocations: 9.492 MB / 446 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01182/0.3938, allocations: 8.411 MB / 454.4 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007321/0.4011, allocations: 3.179 MB / 457.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007938/0.4091, allocations: 4.168 MB / 461.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003037/0.4122, allocations: 0.7148 MB / 462.4 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007283/0.4195, allocations: 1.9 MB / 464.3 MB, free: 8.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006524/0.4261, allocations: 3.819 MB / 468.2 MB, free: 5.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007921/0.434, allocations: 4.154 MB / 472.3 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01749/0.4515, allocations: 13.27 MB / 485.6 MB, free: 3.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.4516, allocations: 0 / 485.6 MB, free: 3.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4516, allocations: 0 / 485.6 MB, free: 3.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005794/0.4522, allocations: 3.938 kB / 485.6 MB, free: 3.672 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.02599/0.4782, allocations: 9.147 MB / 494.7 MB, free: 10.43 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.4782, allocations: 8.031 kB / 494.7 MB, free: 10.42 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04821/0.5265, allocations: 4.892 MB / 499.6 MB, free: 5.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01684/0.5433, allocations: 6.515 MB / 0.4943 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004722/0.5438, allocations: 439.7 kB / 0.4947 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002672/0.5465, allocations: 0.5826 MB / 0.4953 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0403/0.5868, allocations: 17.06 MB / 0.5119 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005787/0.5875, allocations: 79.41 kB / 0.512 GB, free: 11.83 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002826/0.5903, allocations: 267.8 kB / 0.5123 GB, free: 11.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005141/0.5955, allocations: 2.65 MB / 0.5149 GB, free: 8.914 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03436/0.6299, allocations: 14.78 MB / 0.5293 GB, free: 10.11 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5629/1.193, allocations: 64.35 MB / 0.5921 GB, free: 77.45 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02152/1.214, allocations: 8.786 MB / 0.6007 GB, free: 68.56 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005376/1.22, allocations: 5.062 MB / 0.6057 GB, free: 63.49 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02496/1.245, allocations: 18.65 MB / 0.6239 GB, free: 44.87 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/1.245, allocations: 60.56 kB / 0.6239 GB, free: 44.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.692e-06/1.245, allocations: 0 / 0.6239 GB, free: 44.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2557/1.501, allocations: 74.36 MB / 0.6965 GB, free: 2.766 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002543/1.501, allocations: 380.6 kB / 0.6969 GB, free: 2.312 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01282/1.514, allocations: 6.386 MB / 0.7031 GB, free: 12.03 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001117/1.515, allocations: 81.7 kB / 0.7032 GB, free: 11.94 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004268/1.519, allocations: 4.938 MB / 0.708 GB, free: 7.305 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002391/1.522, allocations: 1.434 MB / 0.7094 GB, free: 5.859 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005759/1.527, allocations: 1.991 MB / 0.7114 GB, free: 3.855 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001044/1.528, allocations: 305.1 kB / 0.7117 GB, free: 3.555 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009474/1.537, allocations: 5.996 MB / 0.7175 GB, free: 13.55 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01323/1.55, allocations: 11.02 MB / 0.7283 GB, free: 80 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2936/1.844, allocations: 17.95 MB / 0.7458 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000175/1.844, allocations: 49.22 kB / 0.7459 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04219/1.886, allocations: 23.37 MB / 0.7687 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/1.886, allocations: 78.28 kB / 0.7688 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000167/1.887, allocations: 179.2 kB / 0.7689 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02133/1.908, allocations: 7.44 MB / 0.7762 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007277/1.915, allocations: 2.187 MB / 0.7783 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04195/1.957, allocations: 38.11 MB / 0.8156 GB, free: 131.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009509/1.967, allocations: 0.7489 MB / 0.8163 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001711/1.969, allocations: 0.5234 MB / 0.8168 GB, free: 130.5 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.005233/1.974, allocations: 3.434 MB / 0.8202 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001363/1.975, allocations: 0.6067 MB / 0.8208 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03015/2.005, allocations: 16.96 MB / 0.8373 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.109e-05/2.005, allocations: 55.98 kB / 0.8374 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.165e-05/2.005, allocations: 16 kB / 0.8374 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.841e-05/2.006, allocations: 15.94 kB / 0.8374 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05558/2.061, allocations: 32.03 MB / 0.8687 GB, free: 77.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.351e-05/2.061, allocations: 3.984 kB / 0.8687 GB, free: 77.42 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003324/2.065, allocations: 0.6086 MB / 0.8693 GB, free: 76.81 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01999/2.085, allocations: 7.019 MB / 0.8761 GB, free: 69.77 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00105/2.086, allocations: 64.62 kB / 0.8762 GB, free: 69.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04232/2.128, allocations: 36.31 MB / 0.9117 GB, free: 32.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/2.128, allocations: 10.81 kB / 0.9117 GB, free: 32.98 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03909/2.167, allocations: 24.64 MB / 0.9357 GB, free: 8.219 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001581/2.169, allocations: 0.6617 MB / 0.9364 GB, free: 7.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00197/2.171, allocations: 63.94 kB / 0.9364 GB, free: 7.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2257/2.397, allocations: 444.9 kB / 0.9369 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00203/2.399, allocations: 244.4 kB / 0.9371 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006613/2.399, allocations: 93.5 kB / 0.9372 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00686/2.406, allocations: 4.048 MB / 0.9411 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.3e-07/2.406, allocations: 3.625 kB / 0.9411 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00907/2.415, allocations: 2.299 MB / 0.9434 GB, free: 178.3 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.0009053/2.416, allocations: 278.2 kB / 0.9436 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0192/2.435, allocations: 14.9 MB / 0.9582 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/2.435, allocations: 3.594 kB / 0.9582 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009202/2.445, allocations: 6.712 MB / 0.9648 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004874/2.45, allocations: 0.8803 MB / 0.9656 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03239/2.482, allocations: 20.16 MB / 0.9853 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005471/2.487, allocations: 5.268 MB / 0.9904 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005872/2.493, allocations: 3.021 MB / 0.9934 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/2.495, allocations: 378.7 kB / 0.9938 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of SimCode: time 9.12e-07/2.495, allocations: 0 / 0.9938 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.1391/2.634, allocations: 108.6 MB / 1.1 GB, free: 38.89 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