Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") translateModel(PlanarMechanics.Examples.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 174.3 kB / 15.43 MB, free: 5.863 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.323/1.323, allocations: 225.7 MB / 241.9 MB, free: 212 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.0008242/0.0008243, allocations: 94.47 kB / 293.1 MB, free: 12.86 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.04035/0.04035, allocations: 9.092 MB / 353.3 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003379/0.000338, allocations: 7.656 kB / 416.4 MB, free: 88.15 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08063/0.08098, allocations: 52.39 MB / 468.8 MB, free: 40.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.01106/0.09207, allocations: 17.53 MB / 486.3 MB, free: 22.76 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006795/0.0989, allocations: 5.812 MB / 492.1 MB, free: 16.61 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001695/0.1006, allocations: 71.81 kB / 492.2 MB, free: 16.54 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006421/0.1013, allocations: 290.6 kB / 492.5 MB, free: 16.26 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002108/0.1034, allocations: 1.246 MB / 493.7 MB, free: 15.01 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.1037, allocations: 95.91 kB / 493.8 MB, free: 14.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00227/0.106, allocations: 3.432 MB / 497.2 MB, free: 11.47 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006634/0.1067, allocations: 0.7317 MB / 498 MB, free: 10.72 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006152/0.1073, allocations: 0.7816 MB / 498.7 MB, free: 9.934 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.1083, allocations: 1.265 MB / 0.4883 GB, free: 8.664 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000207/0.1085, allocations: 124 kB / 0.4884 GB, free: 8.543 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000954/0.1095, allocations: 0.7332 MB / 0.4891 GB, free: 7.809 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000585/0.1101, allocations: 1.129 MB / 0.4902 GB, free: 6.676 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007678/0.1108, allocations: 1.473 MB / 0.4917 GB, free: 5.188 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002717/0.1136, allocations: 4.469 MB / 0.496 GB, free: 0.7031 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1136, allocations: 0 / 0.496 GB, free: 0.7031 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1136, allocations: 0 / 0.496 GB, free: 0.7031 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.884e-05/0.1137, allocations: 3.938 kB / 0.496 GB, free: 0.6992 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.004547/0.1182, allocations: 2.651 MB / 0.4986 GB, free: 13.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.1183, allocations: 8.031 kB / 0.4986 GB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005965/0.1242, allocations: 1.818 MB / 0.5004 GB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00237/0.1266, allocations: 1.29 MB / 0.5017 GB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.723e-05/0.1268, allocations: 143.8 kB / 0.5018 GB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003362/0.1271, allocations: 188.1 kB / 0.502 GB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009753/0.1369, allocations: 8.049 MB / 0.5098 GB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-05/0.1369, allocations: 19.81 kB / 0.5099 GB, free: 2.066 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002329/0.1372, allocations: 87.86 kB / 0.5099 GB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002985/0.1402, allocations: 2 MB / 0.5119 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.1527, allocations: 7.106 MB / 0.5188 GB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2117/0.3644, allocations: 24.15 MB / 0.5424 GB, free: 47.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004761/0.3692, allocations: 2.143 MB / 0.5445 GB, free: 47.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/0.371, allocations: 0.7161 MB / 0.5452 GB, free: 47.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005668/0.3767, allocations: 3.991 MB / 0.5491 GB, free: 45.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.3767, allocations: 39.62 kB / 0.5492 GB, free: 45.03 MB / 362.7 MB Notification: Performance of pre-optimization done (n=114): time 3.717e-06/0.3767, allocations: 4.656 kB / 0.5492 GB, free: 45.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=117): time 0.007494/0.3842, allocations: 4.352 MB / 0.5534 GB, free: 44.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.3843, allocations: 64.81 kB / 0.5535 GB, free: 43.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003229/0.3875, allocations: 2.575 MB / 0.556 GB, free: 43.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.905e-05/0.3876, allocations: 41.05 kB / 0.556 GB, free: 43.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008814/0.3885, allocations: 2.113 MB / 0.5581 GB, free: 41.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002625/0.3887, allocations: 465.9 kB / 0.5585 GB, free: 41.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.3889, allocations: 73.91 kB / 0.5586 GB, free: 41.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.3891, allocations: 468.1 kB / 0.559 GB, free: 40.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001808/0.3909, allocations: 1.153 MB / 0.5602 GB, free: 40.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002457/0.3934, allocations: 3.306 MB / 0.5634 GB, free: 36.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003474/0.3968, allocations: 4.77 MB / 0.5681 GB, free: 32.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.662e-05/0.3969, allocations: 22.62 kB / 0.5681 GB, free: 32.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.005102/0.402, allocations: 4.391 MB / 0.5724 GB, free: 30.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.402, allocations: 37.12 kB / 0.5724 GB, free: 30.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.951e-05/0.4021, allocations: 82.8 kB / 0.5725 GB, free: 30.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.203e-05/0.4022, allocations: 102.7 kB / 0.5726 GB, free: 30.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002091/0.4043, allocations: 0.8388 MB / 0.5734 GB, free: 30.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-05/0.4044, allocations: 146.5 kB / 0.5735 GB, free: 29.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00201/0.4064, allocations: 179.4 kB / 0.5737 GB, free: 29.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002212/0.4066, allocations: 224.4 kB / 0.5739 GB, free: 29.88 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001707/0.4083, allocations: 1.576 MB / 0.5755 GB, free: 28.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002287/0.4086, allocations: 206.1 kB / 0.5757 GB, free: 28.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/0.4104, allocations: 1.407 MB / 0.577 GB, free: 27.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001074/0.4105, allocations: 27.98 kB / 0.5771 GB, free: 27.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.4106, allocations: 0 / 0.5771 GB, free: 27.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.4106, allocations: 11.97 kB / 0.5771 GB, free: 27.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005802/0.4164, allocations: 4.772 MB / 0.5817 GB, free: 22.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.4164, allocations: 8 kB / 0.5817 GB, free: 22.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007261/0.4171, allocations: 187.8 kB / 0.5819 GB, free: 21.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.398e-06/0.4172, allocations: 8 kB / 0.5819 GB, free: 21.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.829e-05/0.4172, allocations: 32.78 kB / 0.582 GB, free: 21.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.845e-06/0.4172, allocations: 11.94 kB / 0.582 GB, free: 21.9 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.4172, allocations: 8.047 kB / 0.582 GB, free: 21.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.4196, allocations: 2.357 MB / 0.5843 GB, free: 19.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003933/0.42, allocations: 310.4 kB / 0.5846 GB, free: 19.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002085/0.4202, allocations: 24 kB / 0.5846 GB, free: 19.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006663/0.4209, allocations: 51.88 kB / 0.5846 GB, free: 19.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.421, allocations: 71.58 kB / 0.5847 GB, free: 18.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.626e-05/0.4211, allocations: 44.28 kB / 0.5848 GB, free: 18.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001692/0.4228, allocations: 1.636 MB / 0.5864 GB, free: 17.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4228, allocations: 0 / 0.5864 GB, free: 17.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002191/0.425, allocations: 0.63 MB / 0.587 GB, free: 16.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (93): * Single equations (assignments): 88 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002532/0.4253, allocations: 168.7 kB / 0.5871 GB, free: 16.49 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00339/0.4287, allocations: 2.584 MB / 0.5897 GB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.4287, allocations: 3.938 kB / 0.5897 GB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007195/0.4294, allocations: 0.6362 MB / 0.5903 GB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002718/0.4321, allocations: 354.3 kB / 0.5906 GB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008109/0.4403, allocations: 8.065 MB / 0.5985 GB, free: 4.801 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001818/0.4421, allocations: 2.564 MB / 0.601 GB, free: 2.207 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002363/0.4445, allocations: 1.117 MB / 0.6021 GB, free: 1.086 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.4448, allocations: 171.4 kB / 0.6023 GB, free: 0.918 MB / 362.7 MB Notification: Performance of SimCode: time 1.283e-06/0.4448, allocations: 7.875 kB / 0.6023 GB, free: 0.9102 MB / 362.7 MB Notification: Performance of Templates: time 0.03714/0.482, allocations: 21.42 MB / 0.6232 GB, free: 11.66 MB / 394.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)