Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001045/0.001045, allocations: 199.9 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007848/0.0007848, allocations: 108 kB / 299.9 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.000315, allocations: 4 kB / 360.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2145, allocations: 51.42 MB / 412.1 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0573/0.2718, allocations: 73.79 MB / 485.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03517/0.307, allocations: 19.83 MB / 0.4938 GB, free: 11.13 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01378/0.3209, allocations: 371 kB / 0.4942 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001961/0.3229, allocations: 0.6684 MB / 0.4948 GB, free: 10.1 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005858/0.3287, allocations: 2.686 MB / 0.4974 GB, free: 7.402 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002802/0.3315, allocations: 1.342 MB / 0.4988 GB, free: 6.059 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2228/0.5544, allocations: 13.88 MB / 0.5123 GB, free: 7.938 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01542/0.5698, allocations: 14.55 MB / 0.5265 GB, free: 3.285 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004828/0.5747, allocations: 2.452 MB / 0.5289 GB, free: 3.277 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005515/0.5802, allocations: 3.634 MB / 0.5325 GB, free: 3.199 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001262/0.5815, allocations: 247.2 kB / 0.5327 GB, free: 3.199 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003081/0.5846, allocations: 1.488 MB / 0.5342 GB, free: 2.871 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002618/0.5872, allocations: 3.21 MB / 0.5373 GB, free: 1.73 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00303/0.5903, allocations: 3.472 MB / 0.5407 GB, free: 188 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01128/0.6016, allocations: 12.31 MB / 0.5527 GB, free: 9.297 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.6016, allocations: 6.656 kB / 0.5527 GB, free: 9.297 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.6016, allocations: 4 kB / 0.5527 GB, free: 9.293 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003597/0.602, allocations: 0 / 0.5527 GB, free: 9.293 MB / 394.7 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.01634/0.6183, allocations: 7.338 MB / 0.5599 GB, free: 2.562 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.6184, allocations: 8.031 kB / 0.5599 GB, free: 2.555 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0408/0.6592, allocations: 4.969 MB / 0.5647 GB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0142/0.6734, allocations: 6.257 MB / 0.5709 GB, free: 9.238 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003337/0.6738, allocations: 435.4 kB / 0.5713 GB, free: 9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00206/0.6759, allocations: 0.5804 MB / 0.5718 GB, free: 8.617 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0303/0.7062, allocations: 17.06 MB / 0.5885 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002378/0.7065, allocations: 83.92 kB / 0.5886 GB, free: 11.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007209/0.7072, allocations: 267.7 kB / 0.5888 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004148/0.7114, allocations: 2.653 MB / 0.5914 GB, free: 9.211 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0293/0.7407, allocations: 14.78 MB / 0.6059 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0823/0.823, allocations: 64.49 MB / 0.6688 GB, free: 1.953 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02247/0.8455, allocations: 8.821 MB / 0.6775 GB, free: 8.988 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006287/0.8519, allocations: 5.06 MB / 0.6824 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2121/1.064, allocations: 18.61 MB / 0.7006 GB, free: 196.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.004e-05/1.064, allocations: 64.59 kB / 0.7006 GB, free: 196.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=281): time 5.701e-06/1.064, allocations: 1.25 kB / 0.7006 GB, free: 196.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=374): time 0.232/1.296, allocations: 75.04 MB / 0.7739 GB, free: 133.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/1.296, allocations: 372.6 kB / 0.7743 GB, free: 132.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01144/1.308, allocations: 6.324 MB / 0.7804 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00102/1.309, allocations: 82.83 kB / 0.7805 GB, free: 126.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002663/1.312, allocations: 4.755 MB / 0.7852 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001638/1.313, allocations: 1.379 MB / 0.7865 GB, free: 120.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007218/1.314, allocations: 188 kB / 0.7867 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003506/1.314, allocations: 0.7069 MB / 0.7874 GB, free: 119.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006578/1.321, allocations: 5.95 MB / 0.7932 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008539/1.329, allocations: 10.99 MB / 0.8039 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01728/1.347, allocations: 17.91 MB / 0.8214 GB, free: 79.71 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001022/1.347, allocations: 48 kB / 0.8215 GB, free: 79.66 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04124/1.388, allocations: 23.27 MB / 0.8442 GB, free: 56.34 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.496e-05/1.388, allocations: 87.03 kB / 0.8443 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/1.388, allocations: 176.1 kB / 0.8444 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02002/1.408, allocations: 7.492 MB / 0.8518 GB, free: 48.58 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007194/1.416, allocations: 2.191 MB / 0.8539 GB, free: 46.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2515/1.667, allocations: 35.56 MB / 0.8886 GB, free: 173.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01085/1.678, allocations: 0.7439 MB / 0.8894 GB, free: 173.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002123/1.68, allocations: 0.5312 MB / 0.8899 GB, free: 173 MB / 0.4948 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 {(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.006497/1.687, allocations: 3.434 MB / 0.8932 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001319/1.688, allocations: 0.5725 MB / 0.8938 GB, free: 171.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0299/1.718, allocations: 16.95 MB / 0.9103 GB, free: 166.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.009e-05/1.718, allocations: 51.27 kB / 0.9104 GB, free: 166.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-05/1.718, allocations: 15.16 kB / 0.9104 GB, free: 166.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.386e-05/1.718, allocations: 25.77 kB / 0.9104 GB, free: 166.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04956/1.768, allocations: 32.14 MB / 0.9418 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-05/1.768, allocations: 5.188 kB / 0.9418 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002978/1.771, allocations: 0.6075 MB / 0.9424 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01872/1.79, allocations: 7.147 MB / 0.9494 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008127/1.79, allocations: 67.11 kB / 0.9494 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03749/1.828, allocations: 33.88 MB / 0.9825 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.828, allocations: 3.938 kB / 0.9825 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03635/1.864, allocations: 24.57 MB / 1.007 GB, free: 76.47 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/1.867, allocations: 0.6333 MB / 1.007 GB, free: 75.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001848/1.869, allocations: 63.59 kB / 1.007 GB, free: 75.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003984/1.873, allocations: 447 kB / 1.008 GB, free: 75.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001251/1.874, allocations: 254.6 kB / 1.008 GB, free: 75.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003672/1.874, allocations: 92 kB / 1.008 GB, free: 74.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006311/1.881, allocations: 3.994 MB / 1.012 GB, free: 71 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.31e-07/1.881, allocations: 8.938 kB / 1.012 GB, free: 70.99 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009933/1.89, allocations: 2.295 MB / 1.014 GB, free: 68.71 MB / 0.4948 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.001262/1.892, allocations: 293 kB / 1.014 GB, free: 68.42 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02047/1.912, allocations: 14.82 MB / 1.029 GB, free: 53.63 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.912, allocations: 0 / 1.029 GB, free: 53.63 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009483/1.922, allocations: 6.691 MB / 1.035 GB, free: 46.89 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008301/1.93, allocations: 0.8369 MB / 1.036 GB, free: 46.07 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03001/1.96, allocations: 23.55 MB / 1.059 GB, free: 22.45 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2118/2.172, allocations: 5.273 MB / 1.064 GB, free: 175.1 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008575/2.181, allocations: 3.018 MB / 1.067 GB, free: 175 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001805/2.183, allocations: 386 kB / 1.068 GB, free: 175 MB / 0.4948 GB Notification: Performance of SimCode: time 8.31e-07/2.183, allocations: 0 / 1.068 GB, free: 175 MB / 0.4948 GB Notification: Performance of Templates: time 0.1557/2.338, allocations: 106.1 MB / 1.171 GB, free: 91.04 MB / 0.4948 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches