Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 179.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.612/1.612, allocations: 205.6 MB / 223.7 MB, free: 8.957 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007771/0.0007773, allocations: 92.14 kB / 272.1 MB, free: 8.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002796, allocations: 8 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2429, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.05872/0.3017, allocations: 74.14 MB / 450.7 MB, free: 6.176 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04375/0.3455, allocations: 19.52 MB / 470.3 MB, free: 1.867 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02109/0.3666, allocations: 367.1 kB / 470.6 MB, free: 1.508 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003004/0.3697, allocations: 0.6645 MB / 471.3 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008977/0.3787, allocations: 2.717 MB / 474 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004134/0.3829, allocations: 1.354 MB / 475.4 MB, free: 12.76 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0182/0.4011, allocations: 12.71 MB / 488.1 MB, free: 20 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02155/0.4227, allocations: 14.58 MB / 0.4909 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2837/0.7064, allocations: 2.461 MB / 0.4933 GB, free: 16.95 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006931/0.7134, allocations: 3.658 MB / 0.4968 GB, free: 16.95 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001597/0.715, allocations: 247.3 kB / 0.4971 GB, free: 16.95 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004171/0.7192, allocations: 1.487 MB / 0.4985 GB, free: 16.95 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004299/0.7235, allocations: 3.23 MB / 0.5017 GB, free: 16.95 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006672/0.7302, allocations: 3.492 MB / 0.5051 GB, free: 15.66 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01791/0.7481, allocations: 12.33 MB / 0.5171 GB, free: 12.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.7482, allocations: 2.625 kB / 0.5171 GB, free: 12.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.7482, allocations: 0 / 0.5171 GB, free: 12.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006591/0.7489, allocations: 0 / 0.5171 GB, free: 12.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02713/0.776, allocations: 7.318 MB / 0.5243 GB, free: 8.395 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.091e-05/0.7761, allocations: 9.625 kB / 0.5243 GB, free: 8.395 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04074/0.8168, allocations: 4.966 MB / 0.5291 GB, free: 6.477 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01718/0.8341, allocations: 6.579 MB / 0.5356 GB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003855/0.8345, allocations: 432.6 kB / 0.536 GB, free: 4.422 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003345/0.8378, allocations: 0.5854 MB / 0.5366 GB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03583/0.8737, allocations: 17.06 MB / 0.5532 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003136/0.874, allocations: 81.67 kB / 0.5533 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001018/0.8751, allocations: 269.8 kB / 0.5536 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00427/0.8793, allocations: 2.654 MB / 0.5561 GB, free: 8.473 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03279/0.9122, allocations: 14.78 MB / 0.5706 GB, free: 14.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09632/1.009, allocations: 64.63 MB / 0.6337 GB, free: 7.055 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02527/1.034, allocations: 8.829 MB / 0.6423 GB, free: 14.09 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007427/1.041, allocations: 5.047 MB / 0.6472 GB, free: 9.039 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03149/1.073, allocations: 18.64 MB / 0.6654 GB, free: 6.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.934e-05/1.073, allocations: 67.66 kB / 0.6655 GB, free: 6.199 MB / 490.7 MB Notification: Performance of pre-optimization done (n=281): time 5.029e-06/1.073, allocations: 0 / 0.6655 GB, free: 6.199 MB / 490.7 MB Notification: Performance of matching and sorting (n=374): time 0.4628/1.536, allocations: 75.1 MB / 0.7389 GB, free: 158.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/1.536, allocations: 377.2 kB / 0.7392 GB, free: 157.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008945/1.545, allocations: 6.367 MB / 0.7454 GB, free: 151.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001081/1.546, allocations: 82.33 kB / 0.7455 GB, free: 151.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002514/1.548, allocations: 4.763 MB / 0.7502 GB, free: 146.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001851/1.55, allocations: 1.38 MB / 0.7515 GB, free: 145.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006374/1.551, allocations: 192 kB / 0.7517 GB, free: 145.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003755/1.551, allocations: 0.7068 MB / 0.7524 GB, free: 144.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007142/1.559, allocations: 5.953 MB / 0.7582 GB, free: 138.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009768/1.568, allocations: 10.98 MB / 0.7689 GB, free: 125 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01883/1.587, allocations: 17.91 MB / 0.7864 GB, free: 104.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000137/1.587, allocations: 52 kB / 0.7865 GB, free: 104.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04536/1.633, allocations: 23.28 MB / 0.8092 GB, free: 81.26 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.615e-05/1.633, allocations: 80 kB / 0.8093 GB, free: 81.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001522/1.633, allocations: 172 kB / 0.8094 GB, free: 81.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0191/1.652, allocations: 7.499 MB / 0.8168 GB, free: 73.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007304/1.659, allocations: 2.195 MB / 0.8189 GB, free: 71.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03989/1.699, allocations: 35.56 MB / 0.8536 GB, free: 35.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008241/1.708, allocations: 0.7463 MB / 0.8544 GB, free: 34.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001494/1.709, allocations: 0.5234 MB / 0.8549 GB, free: 34.06 MB / 490.7 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 {(6,67,77.8%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.006127/1.715, allocations: 3.434 MB / 0.8582 GB, free: 30.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001226/1.717, allocations: 0.5785 MB / 0.8588 GB, free: 30.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2335/1.95, allocations: 16.96 MB / 0.8753 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001407/1.95, allocations: 48.25 kB / 0.8754 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.455e-05/1.95, allocations: 16.69 kB / 0.8754 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.411e-05/1.95, allocations: 18.31 kB / 0.8754 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05455/2.005, allocations: 32.16 MB / 0.9068 GB, free: 171.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.723e-05/2.005, allocations: 4.688 kB / 0.9068 GB, free: 171.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003275/2.008, allocations: 0.6097 MB / 0.9074 GB, free: 171.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01907/2.027, allocations: 7.144 MB / 0.9144 GB, free: 167.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001179/2.029, allocations: 70.08 kB / 0.9145 GB, free: 167 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03904/2.068, allocations: 33.87 MB / 0.9476 GB, free: 133 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/2.068, allocations: 4 kB / 0.9476 GB, free: 133 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03729/2.105, allocations: 24.59 MB / 0.9716 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004477/2.11, allocations: 1.663 MB / 0.9732 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001677/2.111, allocations: 63.73 kB / 0.9733 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004309/2.116, allocations: 451.2 kB / 0.9737 GB, free: 106.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00117/2.117, allocations: 250.5 kB / 0.9739 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003502/2.117, allocations: 93.39 kB / 0.974 GB, free: 106.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006032/2.123, allocations: 4.041 MB / 0.978 GB, free: 102.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.9e-07/2.123, allocations: 0 / 0.978 GB, free: 102.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00899/2.132, allocations: 2.285 MB / 0.9802 GB, free: 100.2 MB / 490.7 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.001032/2.133, allocations: 287 kB / 0.9805 GB, free: 99.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02099/2.154, allocations: 14.82 MB / 0.9949 GB, free: 85.15 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/2.154, allocations: 0 / 0.9949 GB, free: 85.15 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009271/2.164, allocations: 6.681 MB / 1.001 GB, free: 78.46 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007957/2.172, allocations: 0.8363 MB / 1.002 GB, free: 77.65 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02861/2.2, allocations: 23.65 MB / 1.025 GB, free: 53.96 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005007/2.205, allocations: 5.285 MB / 1.031 GB, free: 48.64 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007032/2.212, allocations: 3.019 MB / 1.033 GB, free: 45.62 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/2.214, allocations: 391.4 kB / 1.034 GB, free: 45.23 MB / 490.7 MB Notification: Performance of SimCode: time 8.82e-07/2.214, allocations: 0 / 1.034 GB, free: 45.23 MB / 490.7 MB Notification: Performance of Templates: time 0.3438/2.558, allocations: 106.3 MB / 1.138 GB, free: 124.5 MB / 490.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches