Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008802/0.0008803, allocations: 180.1 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.294/1.294, allocations: 225.7 MB / 241.9 MB, free: 400 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.0008035/0.0008035, allocations: 99.73 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.04053/0.04053, allocations: 9.096 MB / 353.3 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003698/0.0003699, allocations: 11.5 kB / 416.4 MB, free: 88.25 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09215/0.09253, allocations: 52.4 MB / 468.8 MB, free: 40.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.02316/0.1157, allocations: 36.06 MB / 0.493 GB, free: 4.18 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.1331, allocations: 9.7 MB / 0.5025 GB, free: 10.12 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006252/0.1394, allocations: 147.7 kB / 0.5026 GB, free: 9.977 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009327/0.1404, allocations: 346.2 kB / 0.5029 GB, free: 9.637 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00305/0.1435, allocations: 1.428 MB / 0.5043 GB, free: 8.203 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004234/0.1439, allocations: 159.8 kB / 0.5045 GB, free: 8.047 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003466/0.1474, allocations: 3.915 MB / 0.5083 GB, free: 4.121 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001149/0.1485, allocations: 0.9548 MB / 0.5092 GB, free: 3.137 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.1496, allocations: 0.9256 MB / 0.5101 GB, free: 2.207 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001522/0.1512, allocations: 1.459 MB / 0.5116 GB, free: 0.7422 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002667/0.1514, allocations: 144 kB / 0.5117 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.1528, allocations: 0.7761 MB / 0.5125 GB, free: 15.82 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009402/0.1537, allocations: 1.258 MB / 0.5137 GB, free: 14.56 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.155, allocations: 1.679 MB / 0.5153 GB, free: 12.87 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004082/0.1591, allocations: 4.928 MB / 0.5201 GB, free: 7.922 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1591, allocations: 0 / 0.5201 GB, free: 7.922 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1591, allocations: 0 / 0.5201 GB, free: 7.922 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.138e-05/0.1592, allocations: 0 / 0.5201 GB, free: 7.922 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.00928/0.1685, allocations: 4.443 MB / 0.5245 GB, free: 3.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1686, allocations: 16.03 kB / 0.5245 GB, free: 3.395 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006154/0.1747, allocations: 1.849 MB / 0.5263 GB, free: 1.539 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002688/0.1774, allocations: 1.494 MB / 0.5278 GB, free: 0 / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1873/0.3647, allocations: 175.9 kB / 0.5279 GB, free: 66.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009545/0.3657, allocations: 228.8 kB / 0.5281 GB, free: 66.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.3774, allocations: 8.924 MB / 0.5369 GB, free: 64.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.301e-05/0.3776, allocations: 29.77 kB / 0.5369 GB, free: 64.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003081/0.3779, allocations: 114.1 kB / 0.537 GB, free: 64.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003092/0.381, allocations: 2.012 MB / 0.539 GB, free: 64.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0133/0.3943, allocations: 7.936 MB / 0.5467 GB, free: 61.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02866/0.423, allocations: 28.58 MB / 0.5746 GB, free: 34.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005386/0.4284, allocations: 2.801 MB / 0.5774 GB, free: 31.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.4295, allocations: 0.9824 MB / 0.5783 GB, free: 30.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006468/0.436, allocations: 6.456 MB / 0.5846 GB, free: 23.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.4361, allocations: 47.81 kB / 0.5847 GB, free: 23.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=155): time 3.556e-06/0.4361, allocations: 4 kB / 0.5847 GB, free: 23.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=197): time 0.01746/0.4535, allocations: 9.732 MB / 0.5942 GB, free: 14.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005762/0.4593, allocations: 6.454 MB / 0.6005 GB, free: 7.293 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003131/0.4625, allocations: 3.003 MB / 0.6034 GB, free: 4.277 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000175/0.4627, allocations: 59.86 kB / 0.6035 GB, free: 4.215 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.4637, allocations: 2.356 MB / 0.6058 GB, free: 1.859 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004779/0.4642, allocations: 0.7256 MB / 0.6065 GB, free: 1.141 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.4644, allocations: 92 kB / 0.6066 GB, free: 1.051 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.4646, allocations: 0.5006 MB / 0.6071 GB, free: 0.543 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002155/0.4667, allocations: 1.52 MB / 0.6085 GB, free: 15.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003707/0.4705, allocations: 4.106 MB / 0.6126 GB, free: 9.629 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006626/0.4771, allocations: 6.078 MB / 0.6185 GB, free: 2.289 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.382e-05/0.4772, allocations: 24 kB / 0.6185 GB, free: 2.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.009862/0.487, allocations: 6.031 MB / 0.6244 GB, free: 12.23 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.712e-05/0.4871, allocations: 51.89 kB / 0.6245 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.669e-05/0.4872, allocations: 92 kB / 0.6245 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/0.4885, allocations: 0.5714 MB / 0.6251 GB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00299/0.4915, allocations: 1.022 MB / 0.6261 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009358/0.5009, allocations: 8.521 MB / 0.6344 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003273/0.5042, allocations: 251.9 kB / 0.6347 GB, free: 1.312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006236/0.5049, allocations: 276 kB / 0.6349 GB, free: 1.043 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 (554): * Single equations (assignments): 547 * 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.002631/0.5075, allocations: 1.728 MB / 0.6366 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003985/0.5079, allocations: 268.5 kB / 0.6369 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004519/0.5124, allocations: 2.894 MB / 0.6397 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.566e-05/0.5125, allocations: 27.98 kB / 0.6397 GB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.669e-06/0.5126, allocations: 8 kB / 0.6397 GB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.5126, allocations: 7.969 kB / 0.6397 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/0.5261, allocations: 9.341 MB / 0.6489 GB, free: 2.605 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.5261, allocations: 4 kB / 0.6489 GB, free: 2.602 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000804/0.5269, allocations: 211.7 kB / 0.6491 GB, free: 2.395 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001557/0.5285, allocations: 0.6043 MB / 0.6497 GB, free: 1.785 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.5286, allocations: 36.11 kB / 0.6497 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.5389, allocations: 8.721 MB / 0.6582 GB, free: 8.641 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005887/0.5448, allocations: 5.675 MB / 0.6637 GB, free: 2.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006166/0.551, allocations: 4.208 MB / 0.6679 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/0.5521, allocations: 357.6 kB / 0.6682 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002657/0.5524, allocations: 32 kB / 0.6682 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009109/0.5533, allocations: 91.95 kB / 0.6683 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/0.5536, allocations: 133 kB / 0.6684 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.5537, allocations: 55.98 kB / 0.6685 GB, free: 13.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002792/0.5565, allocations: 1.916 MB / 0.6704 GB, free: 11.81 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5566, allocations: 4 kB / 0.6704 GB, free: 11.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003587/0.5602, allocations: 0.8997 MB / 0.6712 GB, free: 10.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * 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 (125): * Single equations (assignments): 118 * 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%), (3,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003548/0.5605, allocations: 169.6 kB / 0.6714 GB, free: 10.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00636/0.5669, allocations: 4.182 MB / 0.6755 GB, free: 6.547 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.5669, allocations: 4 kB / 0.6755 GB, free: 6.543 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002529/0.5695, allocations: 1.743 MB / 0.6772 GB, free: 4.762 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003252/0.5727, allocations: 416 kB / 0.6776 GB, free: 4.355 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.5858, allocations: 9.359 MB / 0.6867 GB, free: 10.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003804/0.5897, allocations: 2.834 MB / 0.6895 GB, free: 8.043 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003638/0.5934, allocations: 1.329 MB / 0.6908 GB, free: 6.707 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004865/0.5939, allocations: 195.4 kB / 0.691 GB, free: 6.516 MB / 458.7 MB Notification: Performance of SimCode: time 1.604e-06/0.5939, allocations: 0 / 0.691 GB, free: 6.516 MB / 458.7 MB Notification: Performance of Templates: time 0.2524/0.8464, allocations: 33.22 MB / 0.7234 GB, free: 133.5 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)