Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 105.1 kB / 16.41 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 189.7 kB / 17.35 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04323/0.04323, allocations: 9.121 MB / 300.3 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.89 kB / 415.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08481/0.08603, allocations: 51.44 MB / 466.7 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.009523/0.09559, allocations: 9.721 MB / 476.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005841/0.1015, allocations: 2.842 MB / 479.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001823/0.1033, allocations: 39.94 kB / 479.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.1048, allocations: 421 kB / 479.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004301/0.1092, allocations: 1.529 MB / 481.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007631/0.11, allocations: 187.7 kB / 481.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004336/0.1143, allocations: 2.859 MB / 484.3 MB, free: 32 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001864/0.1162, allocations: 1.079 MB / 485.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00177/0.118, allocations: 1.027 MB / 486.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002331/0.1204, allocations: 1.459 MB / 487.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007697/0.1212, allocations: 260 kB / 488.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001861/0.123, allocations: 0.8737 MB / 489 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001344/0.1244, allocations: 1.348 MB / 490.4 MB, free: 9.945 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001718/0.1261, allocations: 1.763 MB / 492.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005403/0.1315, allocations: 5.465 MB / 497.6 MB, free: 2.688 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.1316, allocations: 0 / 497.6 MB, free: 2.688 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1316, allocations: 7.875 kB / 497.6 MB, free: 2.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001287/0.1317, allocations: 4 kB / 497.6 MB, free: 2.676 MB / 366.1 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.01195/0.1437, allocations: 5.166 MB / 0.491 GB, free: 13.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.1437, allocations: 12.03 kB / 0.491 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006599/0.1503, allocations: 1.806 MB / 0.4928 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/0.1532, allocations: 1.506 MB / 0.4942 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.1534, allocations: 172.3 kB / 0.4944 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000508/0.1539, allocations: 235.7 kB / 0.4946 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01539/0.1693, allocations: 8.948 MB / 0.5034 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001344/0.1694, allocations: 31.66 kB / 0.5034 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007486/0.1702, allocations: 103.9 kB / 0.5035 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2202/0.3905, allocations: 2.012 MB / 0.5055 GB, free: 41.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01771/0.4082, allocations: 7.963 MB / 0.5132 GB, free: 38.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03345/0.4417, allocations: 28.48 MB / 0.541 GB, free: 17.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006351/0.4481, allocations: 2.827 MB / 0.5438 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.4496, allocations: 0.9894 MB / 0.5448 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007573/0.4571, allocations: 6.448 MB / 0.5511 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.4572, allocations: 47.88 kB / 0.5511 GB, free: 6.293 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 4.689e-06/0.4572, allocations: 7.938 kB / 0.5511 GB, free: 6.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01424/0.4715, allocations: 6.475 MB / 0.5574 GB, free: 15.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.4716, allocations: 73.41 kB / 0.5575 GB, free: 15.72 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004835/0.4764, allocations: 3.027 MB / 0.5605 GB, free: 12.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001639/0.4766, allocations: 50.83 kB / 0.5605 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001586/0.4782, allocations: 2.354 MB / 0.5628 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006563/0.4789, allocations: 0.715 MB / 0.5635 GB, free: 9.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.4802, allocations: 0.927 MB / 0.5644 GB, free: 8.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.372e-05/0.4803, allocations: 301.1 kB / 0.5647 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002385/0.4827, allocations: 1.504 MB / 0.5662 GB, free: 6.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003936/0.4866, allocations: 4.084 MB / 0.5702 GB, free: 1.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006547/0.4932, allocations: 6.034 MB / 0.5761 GB, free: 10.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.896e-05/0.4933, allocations: 28 kB / 0.5761 GB, free: 10.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01095/0.5043, allocations: 5.97 MB / 0.5819 GB, free: 4.168 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.509e-05/0.5044, allocations: 44 kB / 0.582 GB, free: 4.125 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000136/0.5045, allocations: 88 kB / 0.582 GB, free: 4.039 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/0.506, allocations: 0.5761 MB / 0.5826 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/0.5089, allocations: 1.006 MB / 0.5836 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.5192, allocations: 9.315 MB / 0.5927 GB, free: 8.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003315/0.5225, allocations: 235.9 kB / 0.5929 GB, free: 8.488 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007605/0.5233, allocations: 272 kB / 0.5932 GB, free: 8.223 MB / 430.1 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.003365/0.5267, allocations: 1.73 MB / 0.5949 GB, free: 6.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005612/0.5273, allocations: 268.5 kB / 0.5951 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004732/0.532, allocations: 2.662 MB / 0.5977 GB, free: 3.531 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/0.5322, allocations: 27.98 kB / 0.5977 GB, free: 3.504 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.236e-05/0.5322, allocations: 11.94 kB / 0.5978 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.669e-05/0.5322, allocations: 11.91 kB / 0.5978 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/0.5453, allocations: 7.242 MB / 0.6048 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.5453, allocations: 4.125 kB / 0.6048 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000898/0.5462, allocations: 243.6 kB / 0.6051 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.5473, allocations: 454.9 kB / 0.6055 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.5475, allocations: 35.98 kB / 0.6055 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00808/0.5556, allocations: 7.871 MB / 0.6132 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.748e-06/0.5556, allocations: 7.938 kB / 0.6132 GB, free: 3.102 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00596/0.5616, allocations: 3.993 MB / 0.6171 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008652/0.5625, allocations: 341.7 kB / 0.6175 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006149/0.5631, allocations: 40.19 kB / 0.6175 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.5643, allocations: 79.91 kB / 0.6176 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002594/0.5645, allocations: 128.9 kB / 0.6177 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.5647, allocations: 59.67 kB / 0.6178 GB, free: 14.37 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003303/0.568, allocations: 1.94 MB / 0.6197 GB, free: 12.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.568, allocations: 0 / 0.6197 GB, free: 12.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004101/0.5721, allocations: 0.8308 MB / 0.6205 GB, free: 11.6 MB / 462.1 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.000532/0.5727, allocations: 172.2 kB / 0.6206 GB, free: 11.43 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006965/0.5796, allocations: 4.148 MB / 0.6247 GB, free: 7.266 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.5797, allocations: 0.6875 kB / 0.6247 GB, free: 7.266 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002443/0.5821, allocations: 1.594 MB / 0.6262 GB, free: 5.629 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002748/0.5849, allocations: 437.7 kB / 0.6267 GB, free: 5.211 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/0.5987, allocations: 7.649 MB / 0.6341 GB, free: 13.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003846/0.6026, allocations: 2.808 MB / 0.6369 GB, free: 10.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008261/0.6035, allocations: 235.4 kB / 0.6371 GB, free: 10.43 MB / 478.1 MB Notification: Performance of SimCode: time 1.402e-06/0.6035, allocations: 4 kB / 0.6371 GB, free: 10.43 MB / 478.1 MB Notification: Performance of Templates: time 0.3291/0.9326, allocations: 98.39 MB / 0.7332 GB, free: 174.8 MB / 0.5294 GB 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)