Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009838/0.0009838, allocations: 180.2 kB / 15.43 MB, free: 6.207 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.29/1.29, allocations: 225.7 MB / 241.9 MB, free: 380 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.0007646/0.0007645, allocations: 96.92 kB / 293.1 MB, free: 12.89 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.03972/0.03972, allocations: 9.097 MB / 353.3 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003221/0.000322, allocations: 9.953 kB / 416.4 MB, free: 88.22 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09408, allocations: 52.39 MB / 468.8 MB, free: 40.33 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.02887/0.123, allocations: 43.05 MB / 0.4998 GB, free: 13.16 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02077/0.1438, allocations: 11.5 MB / 0.511 GB, free: 1.207 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008025/0.1519, allocations: 175.6 kB / 0.5112 GB, free: 1.035 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.1535, allocations: 0.5482 MB / 0.5118 GB, free: 496 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004575/0.1581, allocations: 2.004 MB / 0.5137 GB, free: 14.47 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005677/0.1587, allocations: 163.8 kB / 0.5139 GB, free: 14.31 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00696/0.1656, allocations: 6.159 MB / 0.5199 GB, free: 8.137 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003533/0.1692, allocations: 2.042 MB / 0.5219 GB, free: 6.051 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002774/0.172, allocations: 1.404 MB / 0.5232 GB, free: 4.641 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00344/0.1755, allocations: 2.226 MB / 0.5254 GB, free: 2.402 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008853/0.1764, allocations: 216 kB / 0.5256 GB, free: 2.191 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001961/0.1783, allocations: 0.7995 MB / 0.5264 GB, free: 1.391 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.2168/0.3951, allocations: 1.95 MB / 0.5283 GB, free: 10.16 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003527/0.3987, allocations: 2.593 MB / 0.5308 GB, free: 9.832 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007846/0.4065, allocations: 7.644 MB / 0.5383 GB, free: 8.645 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4066, allocations: 0 / 0.5383 GB, free: 8.645 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4066, allocations: 0 / 0.5383 GB, free: 8.645 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002509/0.4068, allocations: 0 / 0.5383 GB, free: 8.645 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2088 * Number of variables: 2088 Notification: Performance of Generate backend data structure: time 0.01044/0.4173, allocations: 4.902 MB / 0.5431 GB, free: 6.434 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4173, allocations: 12.16 kB / 0.5431 GB, free: 6.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01087/0.4282, allocations: 3.444 MB / 0.5465 GB, free: 6.062 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00513/0.4334, allocations: 2.228 MB / 0.5486 GB, free: 5.465 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002322/0.4336, allocations: 255.7 kB / 0.5489 GB, free: 5.457 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001859/0.4355, allocations: 338 kB / 0.5492 GB, free: 5.449 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02339/0.4589, allocations: 14.13 MB / 0.563 GB, free: 2.305 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001299/0.4591, allocations: 51.66 kB / 0.5631 GB, free: 2.301 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006003/0.4597, allocations: 169.3 kB / 0.5632 GB, free: 2.301 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005183/0.4649, allocations: 3.345 MB / 0.5665 GB, free: 1.602 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02209/0.487, allocations: 12.27 MB / 0.5785 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06417/0.5512, allocations: 50.04 MB / 0.6273 GB, free: 2.547 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006816/0.5581, allocations: 3.905 MB / 0.6311 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/0.56, allocations: 1.375 MB / 0.6325 GB, free: 13.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01002/0.57, allocations: 6.88 MB / 0.6392 GB, free: 5.688 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.5701, allocations: 54.5 kB / 0.6393 GB, free: 5.629 MB / 426.7 MB Notification: Performance of pre-optimization done (n=206): time 4.008e-06/0.5701, allocations: 0 / 0.6393 GB, free: 5.629 MB / 426.7 MB Notification: Performance of matching and sorting (n=228): time 0.02439/0.5945, allocations: 11.8 MB / 0.6508 GB, free: 9.734 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.5946, allocations: 153.8 kB / 0.6509 GB, free: 9.555 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009041/0.6037, allocations: 5.334 MB / 0.6561 GB, free: 4.215 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004672/0.6042, allocations: 57.7 kB / 0.6562 GB, free: 4.152 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003256/0.6074, allocations: 4.101 MB / 0.6602 GB, free: 56 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001261/0.6087, allocations: 0.8916 MB / 0.6611 GB, free: 15.17 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003888/0.6091, allocations: 164 kB / 0.6612 GB, free: 15.01 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000489/0.6096, allocations: 0.6533 MB / 0.6619 GB, free: 14.35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004165/0.6138, allocations: 2.487 MB / 0.6643 GB, free: 11.85 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006947/0.6207, allocations: 7.637 MB / 0.6718 GB, free: 1.73 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/0.6331, allocations: 11 MB / 0.6825 GB, free: 4.906 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001473/0.6333, allocations: 56 kB / 0.6825 GB, free: 4.852 MB / 474.7 MB Notification: Performance of matching and sorting (n=1079) (initialization): time 0.01872/0.652, allocations: 9.961 MB / 0.6923 GB, free: 11.99 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.6522, allocations: 87.94 kB / 0.6924 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002399/0.6524, allocations: 180 kB / 0.6925 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000863/0.6533, allocations: 452.1 kB / 0.693 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005517/0.6588, allocations: 1.855 MB / 0.6948 GB, free: 9.602 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003901/0.6627, allocations: 3.549 MB / 0.6982 GB, free: 6.004 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005118/0.6679, allocations: 423.5 kB / 0.6986 GB, free: 5.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007951/0.6687, allocations: 0.5069 MB / 0.6991 GB, free: 5.086 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 833 * Number of states: 0 () * Number of discrete variables: 44 (distance.arrow.arrowLine.twoHeadedArrow,distance.arrow.headAtOrigin,distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],distance.world.gravityArrowColor[3],distance.world.gravityArrowColor[2],distance.world.gravityArrowColor[1],distance.world.axisColor_x[3],distance.world.axisColor_x[2],distance.world.axisColor_x[1],distance.world.groundColor[3],distance.world.groundColor[2],distance.world.groundColor[1],distance.world.gravitySphereColor[3],distance.world.gravitySphereColor[2],distance.world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],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 (1010): * Single equations (assignments): 1001 * Array equations: 8 * 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.005309/0.674, allocations: 2.903 MB / 0.702 GB, free: 2.215 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007651/0.6748, allocations: 430.4 kB / 0.7024 GB, free: 1.789 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.217/0.8917, allocations: 2.505 MB / 0.7048 GB, free: 171.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002133/0.892, allocations: 49.39 kB / 0.7049 GB, free: 171.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.892, allocations: 5.531 kB / 0.7049 GB, free: 171.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.238e-05/0.892, allocations: 10 kB / 0.7049 GB, free: 171.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01567/0.9077, allocations: 8.218 MB / 0.7129 GB, free: 170.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.566e-05/0.9078, allocations: 4.719 kB / 0.7129 GB, free: 170.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.909, allocations: 295.4 kB / 0.7132 GB, free: 170.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006333/0.9097, allocations: 218.3 kB / 0.7134 GB, free: 170.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001255/0.9098, allocations: 42.92 kB / 0.7135 GB, free: 170.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002949/0.9128, allocations: 2.731 MB / 0.7161 GB, free: 168.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.437e-06/0.9128, allocations: 5.734 kB / 0.7161 GB, free: 168.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006937/0.9197, allocations: 4.995 MB / 0.721 GB, free: 167 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/0.9212, allocations: 0.5017 MB / 0.7215 GB, free: 166.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000514/0.9217, allocations: 38.28 kB / 0.7215 GB, free: 166.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.923, allocations: 97.58 kB / 0.7216 GB, free: 166.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002827/0.9233, allocations: 128.4 kB / 0.7217 GB, free: 166.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.9235, allocations: 66.75 kB / 0.7218 GB, free: 166.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006637/0.9301, allocations: 3.337 MB / 0.7251 GB, free: 165.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.9302, allocations: 3.688 kB / 0.7251 GB, free: 165.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008416/0.9386, allocations: 1.203 MB / 0.7262 GB, free: 165.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (165): * Single equations (assignments): 156 * Array equations: 8 * 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.0005569/0.9392, allocations: 176.9 kB / 0.7264 GB, free: 165.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008673/0.9479, allocations: 5.861 MB / 0.7321 GB, free: 163.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.9479, allocations: 5.844 kB / 0.7321 GB, free: 163.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001873/0.9498, allocations: 1.48 MB / 0.7336 GB, free: 162.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005807/0.9556, allocations: 0.5556 MB / 0.7341 GB, free: 162.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02181/0.9774, allocations: 14.11 MB / 0.7479 GB, free: 152.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004684/0.9822, allocations: 4.073 MB / 0.7519 GB, free: 149.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005846/0.9881, allocations: 2.536 MB / 0.7544 GB, free: 146.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000771/0.9888, allocations: 313.5 kB / 0.7547 GB, free: 146.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.733e-06/0.9889, allocations: 4 kB / 0.7547 GB, free: 146.4 MB / 490.7 MB Notification: Performance of Templates: time 0.06642/1.055, allocations: 39.79 MB / 0.7935 GB, free: 106.8 MB / 490.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)