Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009682/0.0009682, allocations: 177.7 kB / 15.43 MB, free: 5.766 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.257/1.257, allocations: 225.7 MB / 241.9 MB, free: 412 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.0008462/0.0008466, allocations: 99.56 kB / 293.1 MB, free: 12.91 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.04039/0.04039, allocations: 9.096 MB / 353.3 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004979/0.000498, allocations: 9.438 kB / 416.4 MB, free: 88.18 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09735, allocations: 52.4 MB / 468.8 MB, free: 40.37 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.02379/0.1212, allocations: 36.06 MB / 0.493 GB, free: 4.207 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01595/0.1372, allocations: 9.704 MB / 0.5025 GB, free: 10.14 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006292/0.1435, allocations: 151.7 kB / 0.5026 GB, free: 9.992 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001251/0.1448, allocations: 342.2 kB / 0.5029 GB, free: 9.656 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003906/0.1488, allocations: 1.432 MB / 0.5043 GB, free: 8.219 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007212/0.1495, allocations: 155.8 kB / 0.5045 GB, free: 8.066 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006137/0.1557, allocations: 3.911 MB / 0.5083 GB, free: 4.145 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002264/0.158, allocations: 0.9509 MB / 0.5092 GB, free: 3.164 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002097/0.1601, allocations: 0.9256 MB / 0.5101 GB, free: 2.234 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002491/0.1626, allocations: 1.463 MB / 0.5116 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009494/0.1636, allocations: 148 kB / 0.5117 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00221/0.1659, allocations: 0.78 MB / 0.5125 GB, free: 15.84 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001894/0.1678, allocations: 1.246 MB / 0.5137 GB, free: 14.59 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002929/0.1708, allocations: 1.679 MB / 0.5153 GB, free: 12.89 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007958/0.1788, allocations: 4.928 MB / 0.5201 GB, free: 7.949 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.1788, allocations: 4 kB / 0.5201 GB, free: 7.945 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1788, allocations: 0 / 0.5201 GB, free: 7.945 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002489/0.1791, allocations: 0 / 0.5201 GB, free: 7.945 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01314/0.1922, allocations: 4.448 MB / 0.5245 GB, free: 3.426 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/0.1923, allocations: 8.031 kB / 0.5245 GB, free: 3.418 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007074/0.1994, allocations: 1.852 MB / 0.5263 GB, free: 1.559 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003449/0.2029, allocations: 1.494 MB / 0.5278 GB, free: 20 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1818/0.3847, allocations: 174.2 kB / 0.5279 GB, free: 65.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.3858, allocations: 224.3 kB / 0.5281 GB, free: 65.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01574/0.4016, allocations: 8.932 MB / 0.5369 GB, free: 64.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.281e-05/0.4017, allocations: 30.58 kB / 0.5369 GB, free: 64.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.402, allocations: 110.8 kB / 0.537 GB, free: 64.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003547/0.4056, allocations: 2.014 MB / 0.539 GB, free: 64.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01577/0.4214, allocations: 7.926 MB / 0.5467 GB, free: 61.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03143/0.4528, allocations: 28.59 MB / 0.5746 GB, free: 34.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005873/0.4588, allocations: 2.8 MB / 0.5774 GB, free: 31.85 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.46, allocations: 0.9824 MB / 0.5783 GB, free: 30.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007091/0.4672, allocations: 6.463 MB / 0.5846 GB, free: 23.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.4672, allocations: 43.88 kB / 0.5847 GB, free: 23.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=155): time 3.536e-06/0.4672, allocations: 0 / 0.5847 GB, free: 23.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=193): time 0.01362/0.4809, allocations: 6.474 MB / 0.591 GB, free: 17.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.4809, allocations: 69.41 kB / 0.5911 GB, free: 17.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003303/0.4842, allocations: 3.003 MB / 0.594 GB, free: 14.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.4844, allocations: 49.7 kB / 0.594 GB, free: 14.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009745/0.4854, allocations: 2.356 MB / 0.5963 GB, free: 11.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000424/0.4858, allocations: 0.7084 MB / 0.597 GB, free: 11.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.486, allocations: 88 kB / 0.5971 GB, free: 11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.4862, allocations: 0.5082 MB / 0.5976 GB, free: 10.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001915/0.4881, allocations: 1.489 MB / 0.5991 GB, free: 8.984 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003004/0.4911, allocations: 4.058 MB / 0.603 GB, free: 3.645 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006688/0.4978, allocations: 6.017 MB / 0.6089 GB, free: 12.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-05/0.498, allocations: 24 kB / 0.6089 GB, free: 12.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01205/0.51, allocations: 5.929 MB / 0.6147 GB, free: 6.406 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.047e-05/0.5101, allocations: 44 kB / 0.6148 GB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001192/0.5103, allocations: 94.2 kB / 0.6149 GB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001502/0.5118, allocations: 0.5755 MB / 0.6154 GB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003268/0.515, allocations: 1.006 MB / 0.6164 GB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009874/0.5249, allocations: 8.505 MB / 0.6247 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003154/0.5281, allocations: 239.5 kB / 0.6249 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004405/0.5286, allocations: 272.4 kB / 0.6252 GB, free: 11.28 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (548): * Single equations (assignments): 541 * 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,19,56.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.002818/0.5314, allocations: 1.725 MB / 0.6269 GB, free: 9.547 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000383/0.5318, allocations: 272.4 kB / 0.6271 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/0.5362, allocations: 2.652 MB / 0.6297 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.871e-05/0.5364, allocations: 27.98 kB / 0.6298 GB, free: 6.574 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.5364, allocations: 7.938 kB / 0.6298 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.669e-05/0.5364, allocations: 14.17 kB / 0.6298 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.5477, allocations: 7.305 MB / 0.6369 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.5478, allocations: 4 kB / 0.6369 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008549/0.5486, allocations: 243.6 kB / 0.6371 GB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001156/0.5498, allocations: 451.3 kB / 0.6376 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.5499, allocations: 39.98 kB / 0.6376 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007785/0.5577, allocations: 7.206 MB / 0.6446 GB, free: 6.805 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.5577, allocations: 11.92 kB / 0.6447 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005801/0.5635, allocations: 3.984 MB / 0.6486 GB, free: 2.734 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008057/0.5644, allocations: 357.6 kB / 0.6489 GB, free: 2.363 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002878/0.5647, allocations: 35.83 kB / 0.6489 GB, free: 2.332 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000871/0.5655, allocations: 87.78 kB / 0.649 GB, free: 2.246 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002799/0.5658, allocations: 133.1 kB / 0.6491 GB, free: 2.113 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.5659, allocations: 48.12 kB / 0.6492 GB, free: 2.066 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003111/0.5691, allocations: 1.916 MB / 0.6511 GB, free: 148 kB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5691, allocations: 0 / 0.6511 GB, free: 148 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.003899/0.573, allocations: 0.8268 MB / 0.6519 GB, free: 15.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.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 (135): * Single equations (assignments): 128 * 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,15,56.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003698/0.5734, allocations: 191.5 kB / 0.652 GB, free: 15.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00618/0.5796, allocations: 4.103 MB / 0.6561 GB, free: 11.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.5796, allocations: 0 / 0.6561 GB, free: 11.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002159/0.5818, allocations: 1.582 MB / 0.6576 GB, free: 9.391 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003309/0.5851, allocations: 414.7 kB / 0.658 GB, free: 8.984 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.5971, allocations: 9.077 MB / 0.6669 GB, free: 15.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002912/0.6001, allocations: 2.797 MB / 0.6696 GB, free: 13.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003961/0.604, allocations: 1.333 MB / 0.6709 GB, free: 11.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005866/0.6047, allocations: 195.4 kB / 0.6711 GB, free: 11.48 MB / 442.7 MB Notification: Performance of SimCode: time 1.173e-06/0.6047, allocations: 3.938 kB / 0.6711 GB, free: 11.48 MB / 442.7 MB Notification: Performance of Templates: time 0.2288/0.8335, allocations: 30.63 MB / 0.701 GB, free: 142 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)