Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008536/0.0008538, allocations: 178.8 kB / 15.43 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 225.7 MB / 241.9 MB, free: 388 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008507/0.0008507, allocations: 91.95 kB / 293.1 MB, free: 12.88 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04227/0.04227, allocations: 9.085 MB / 353.3 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003772, allocations: 9.656 kB / 416.4 MB, free: 88.23 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09142/0.09181, allocations: 52.4 MB / 468.8 MB, free: 40.33 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01648/0.1083, allocations: 24.94 MB / 493.7 MB, free: 15.31 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01277/0.1212, allocations: 7.446 MB / 0.4894 GB, free: 7.516 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004683/0.1259, allocations: 99.81 kB / 0.4895 GB, free: 7.418 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001179/0.1271, allocations: 318.4 kB / 0.4898 GB, free: 7.105 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003387/0.1305, allocations: 1.323 MB / 0.4911 GB, free: 5.777 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007149/0.1313, allocations: 155.8 kB / 0.4913 GB, free: 5.625 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003484/0.1348, allocations: 3.58 MB / 0.4947 GB, free: 2.035 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.1361, allocations: 0.8801 MB / 0.4956 GB, free: 1.125 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001072/0.1372, allocations: 0.836 MB / 0.4964 GB, free: 292 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001558/0.1387, allocations: 1.319 MB / 0.4977 GB, free: 14.96 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000307/0.1391, allocations: 128 kB / 0.4978 GB, free: 14.84 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001355/0.1404, allocations: 0.776 MB / 0.4986 GB, free: 14.06 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001063/0.1415, allocations: 1.122 MB / 0.4997 GB, free: 12.93 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001287/0.1428, allocations: 1.512 MB / 0.5012 GB, free: 11.41 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004171/0.147, allocations: 4.578 MB / 0.5056 GB, free: 6.812 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.147, allocations: 0 / 0.5056 GB, free: 6.812 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.147, allocations: 0 / 0.5056 GB, free: 6.812 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.099e-05/0.1471, allocations: 0 / 0.5056 GB, free: 6.812 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.006776/0.1539, allocations: 3.288 MB / 0.5088 GB, free: 3.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1539, allocations: 12.03 kB / 0.5089 GB, free: 3.449 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006078/0.16, allocations: 1.814 MB / 0.5106 GB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.1626, allocations: 1.402 MB / 0.512 GB, free: 188 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.1628, allocations: 156.1 kB / 0.5121 GB, free: 32 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005662/0.1633, allocations: 199.8 kB / 0.5123 GB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.1742, allocations: 7.982 MB / 0.5201 GB, free: 7.492 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.168e-05/0.1743, allocations: 27.72 kB / 0.5202 GB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002933/0.1746, allocations: 99.86 kB / 0.5203 GB, free: 7.367 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002727/0.1773, allocations: 1.844 MB / 0.5221 GB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2248/0.4021, allocations: 7.137 MB / 0.529 GB, free: 61.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0344/0.4365, allocations: 24.46 MB / 0.5529 GB, free: 48.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004657/0.4412, allocations: 2.374 MB / 0.5552 GB, free: 47.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.4425, allocations: 0.8219 MB / 0.556 GB, free: 46.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006302/0.4488, allocations: 4.637 MB / 0.5606 GB, free: 42.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.4489, allocations: 44.72 kB / 0.5606 GB, free: 42.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=131): time 3.056e-06/0.4489, allocations: 0 / 0.5606 GB, free: 42.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=153): time 0.01218/0.461, allocations: 6.856 MB / 0.5673 GB, free: 39.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.4611, allocations: 63.78 kB / 0.5674 GB, free: 39.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003637/0.4648, allocations: 2.651 MB / 0.5699 GB, free: 37.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.169e-05/0.4648, allocations: 45.7 kB / 0.57 GB, free: 37.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008872/0.4657, allocations: 2.11 MB / 0.5721 GB, free: 35.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003448/0.4661, allocations: 0.568 MB / 0.5726 GB, free: 34.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.4662, allocations: 76 kB / 0.5727 GB, free: 34.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.4664, allocations: 474.6 kB / 0.5731 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/0.4681, allocations: 1.28 MB / 0.5744 GB, free: 32.99 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002429/0.4705, allocations: 3.421 MB / 0.5777 GB, free: 28.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00451/0.4751, allocations: 5.052 MB / 0.5827 GB, free: 22.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.476e-05/0.4751, allocations: 24 kB / 0.5827 GB, free: 22.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.006596/0.4817, allocations: 4.876 MB / 0.5874 GB, free: 17.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.87e-05/0.4818, allocations: 40.06 kB / 0.5875 GB, free: 17.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-05/0.4819, allocations: 76 kB / 0.5876 GB, free: 17.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007232/0.4826, allocations: 310 kB / 0.5878 GB, free: 17.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/0.485, allocations: 0.8578 MB / 0.5887 GB, free: 16.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003264/0.4883, allocations: 3.346 MB / 0.592 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002796/0.4911, allocations: 202 kB / 0.5921 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004954/0.4916, allocations: 236.7 kB / 0.5924 GB, free: 12.33 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (472): * Single equations (assignments): 467 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00308/0.4947, allocations: 1.568 MB / 0.5939 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005133/0.4952, allocations: 221.1 kB / 0.5941 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.4985, allocations: 2.019 MB / 0.5961 GB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.797e-05/0.4987, allocations: 28.92 kB / 0.5961 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.4987, allocations: 0 / 0.5961 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.4987, allocations: 3.984 kB / 0.5961 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009531/0.5082, allocations: 5.711 MB / 0.6017 GB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.5083, allocations: 0 / 0.6017 GB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000748/0.509, allocations: 207.7 kB / 0.6019 GB, free: 2.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004981/0.5095, allocations: 208.8 kB / 0.6021 GB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.884e-05/0.5096, allocations: 36.61 kB / 0.6021 GB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002572/0.5122, allocations: 2.705 MB / 0.6048 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.5122, allocations: 0 / 0.6048 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00499/0.5172, allocations: 3.101 MB / 0.6078 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.5184, allocations: 470 kB / 0.6082 GB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005645/0.519, allocations: 24.28 kB / 0.6083 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009953/0.52, allocations: 61.69 kB / 0.6083 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.5202, allocations: 92.77 kB / 0.6084 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.531e-05/0.5203, allocations: 51.92 kB / 0.6085 GB, free: 11.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003044/0.5234, allocations: 1.701 MB / 0.6101 GB, free: 9.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5234, allocations: 0 / 0.6101 GB, free: 9.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003076/0.5265, allocations: 0.6844 MB / 0.6108 GB, free: 9.141 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.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 (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004009/0.5269, allocations: 171.3 kB / 0.611 GB, free: 8.973 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00531/0.5322, allocations: 3.142 MB / 0.614 GB, free: 5.828 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.5322, allocations: 0 / 0.614 GB, free: 5.828 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.5338, allocations: 1.031 MB / 0.615 GB, free: 4.789 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/0.5365, allocations: 373 kB / 0.6154 GB, free: 4.426 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01404/0.5505, allocations: 8.232 MB / 0.6234 GB, free: 12.13 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003929/0.5545, allocations: 2.588 MB / 0.626 GB, free: 9.512 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003714/0.5583, allocations: 1.192 MB / 0.6271 GB, free: 8.312 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006647/0.559, allocations: 175.4 kB / 0.6273 GB, free: 8.141 MB / 394.7 MB Notification: Performance of SimCode: time 1.302e-06/0.559, allocations: 0 / 0.6273 GB, free: 8.141 MB / 394.7 MB Notification: Performance of Templates: time 0.04719/0.6062, allocations: 24.68 MB / 0.6514 GB, free: 15.64 MB / 426.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)