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.001556/0.001556, allocations: 112.2 kB / 17.75 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.001852/0.001852, allocations: 185.3 kB / 18.68 MB, free: 4.41 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.316/1.316, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009425/0.0009425, allocations: 43.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2092, allocations: 49.43 MB / 401.4 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01694/0.2262, allocations: 18.17 MB / 419.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.2372, allocations: 6.049 MB / 425.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002299/0.2396, allocations: 143.6 kB / 425.8 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01041/0.25, allocations: 6.27 MB / 432 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006416/0.2565, allocations: 2.926 MB / 435 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004377/0.2609, allocations: 2.273 MB / 437.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.2722, allocations: 9.497 MB / 446.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009328/0.2815, allocations: 8.419 MB / 455.2 MB, free: 2.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004615/0.2862, allocations: 3.206 MB / 458.4 MB, free: 15.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00583/0.292, allocations: 4.176 MB / 462.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001942/0.294, allocations: 0.7148 MB / 463.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004272/0.2983, allocations: 1.912 MB / 465.2 MB, free: 8.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0045/0.3028, allocations: 3.854 MB / 469 MB, free: 5.102 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005916/0.3087, allocations: 4.146 MB / 473.2 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.3213, allocations: 13.22 MB / 486.4 MB, free: 3.668 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3214, allocations: 3.938 kB / 486.4 MB, free: 3.664 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3214, allocations: 0 / 486.4 MB, free: 3.664 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002565/0.3216, allocations: 0 / 486.4 MB, free: 3.664 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.01882/0.3405, allocations: 8.917 MB / 495.3 MB, free: 10.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3405, allocations: 12.03 kB / 495.3 MB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.049/0.3895, allocations: 4.847 MB / 0.4884 GB, free: 5.789 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01565/0.4052, allocations: 6.497 MB / 0.4948 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003146/0.4056, allocations: 431.7 kB / 0.4952 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001765/0.4073, allocations: 0.5895 MB / 0.4958 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03022/0.4376, allocations: 17.05 MB / 0.5124 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002325/0.4378, allocations: 83.27 kB / 0.5125 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001006/0.4388, allocations: 263.8 kB / 0.5128 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004554/0.4434, allocations: 2.658 MB / 0.5154 GB, free: 9.207 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02978/0.4732, allocations: 14.78 MB / 0.5298 GB, free: 10.4 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3869/0.8601, allocations: 64.24 MB / 0.5925 GB, free: 78.16 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02084/0.881, allocations: 8.786 MB / 0.6011 GB, free: 69.26 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00428/0.8853, allocations: 5.062 MB / 0.606 GB, free: 64.19 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02186/0.9072, allocations: 18.63 MB / 0.6242 GB, free: 45.55 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.9072, allocations: 64.5 kB / 0.6243 GB, free: 45.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.059e-06/0.9073, allocations: 0 / 0.6243 GB, free: 45.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2619/1.169, allocations: 73.99 MB / 0.6966 GB, free: 3.441 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001646/1.169, allocations: 380.6 kB / 0.6969 GB, free: 2.988 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008431/1.178, allocations: 6.368 MB / 0.7031 GB, free: 12.61 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0007397/1.179, allocations: 85.7 kB / 0.7032 GB, free: 12.52 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003009/1.182, allocations: 4.749 MB / 0.7079 GB, free: 7.711 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001451/1.183, allocations: 1.38 MB / 0.7092 GB, free: 6.312 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002914/1.186, allocations: 1.978 MB / 0.7111 GB, free: 4.32 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.072e-05/1.186, allocations: 305.1 kB / 0.7114 GB, free: 4.02 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007963/1.194, allocations: 5.996 MB / 0.7173 GB, free: 14.01 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01081/1.205, allocations: 11.02 MB / 0.7281 GB, free: 0.543 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1914/1.396, allocations: 17.95 MB / 0.7456 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001399/1.396, allocations: 49.44 kB / 0.7456 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04031/1.437, allocations: 23.33 MB / 0.7684 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.474e-05/1.437, allocations: 79.25 kB / 0.7685 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/1.437, allocations: 174.8 kB / 0.7687 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02184/1.459, allocations: 7.445 MB / 0.7759 GB, free: 172.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007161/1.466, allocations: 2.187 MB / 0.7781 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04324/1.509, allocations: 38.09 MB / 0.8153 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008103/1.517, allocations: 0.7535 MB / 0.816 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009427/1.518, allocations: 0.5273 MB / 0.8165 GB, free: 131 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.004217/1.523, allocations: 3.423 MB / 0.8199 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/1.524, allocations: 0.5736 MB / 0.8204 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03071/1.554, allocations: 16.97 MB / 0.837 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.703e-05/1.554, allocations: 15.94 kB / 0.837 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/1.554, allocations: 0 / 0.837 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/1.556, allocations: 0.6238 MB / 0.8376 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/1.557, allocations: 60 kB / 0.8377 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00401/1.561, allocations: 447.2 kB / 0.8381 GB, free: 109.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009265/1.562, allocations: 337.7 kB / 0.8384 GB, free: 108.9 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02546/1.587, allocations: 15.41 MB / 0.8535 GB, free: 93.52 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01621/1.603, allocations: 15.91 MB / 0.869 GB, free: 77.53 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004721/1.608, allocations: 5.051 MB / 0.8739 GB, free: 72.47 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004582/1.613, allocations: 4.047 MB / 0.8779 GB, free: 68.43 MB / 0.5294 GB Notification: Performance of Backend: time 4.31e-07/1.613, allocations: 0 / 0.8779 GB, free: 68.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01619/1.629, allocations: 10.52 MB / 0.8882 GB, free: 57.95 MB / 0.5294 GB Notification: Performance of SimCode: time 0.02088/1.65, allocations: 16.27 MB / 0.904 GB, free: 41.67 MB / 0.5294 GB Notification: Performance of Templates: time 0.3204/1.97, allocations: 126.6 MB / 1.028 GB, free: 109.3 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