Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002082/0.002082, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.387/1.387, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.188/0.188, allocations: 9.117 MB / 299.5 MB, free: 1.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 71.88 kB / 362 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09811/0.09949, allocations: 51.43 MB / 413.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.1893/0.2888, allocations: 9.724 MB / 423.1 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005458/0.2943, allocations: 2.844 MB / 426 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001375/0.2957, allocations: 39.28 kB / 426 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.297, allocations: 419.2 kB / 426.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003575/0.3006, allocations: 1.531 MB / 427.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007338/0.3014, allocations: 183.1 kB / 428.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002927/0.3043, allocations: 2.84 MB / 431 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.3054, allocations: 1.072 MB / 432 MB, free: 35.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008494/0.3062, allocations: 1.028 MB / 433.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.3074, allocations: 1.462 MB / 434.5 MB, free: 34.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002882/0.3077, allocations: 261.7 kB / 434.8 MB, free: 34.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.3088, allocations: 0.8596 MB / 435.6 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007609/0.3096, allocations: 1.351 MB / 437 MB, free: 33.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009777/0.3106, allocations: 1.764 MB / 438.7 MB, free: 32.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003379/0.314, allocations: 5.203 MB / 443.9 MB, free: 30.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.314, allocations: 7.938 kB / 444 MB, free: 30.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.314, allocations: 3.328 kB / 444 MB, free: 30.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.387e-05/0.3141, allocations: 0 / 444 MB, free: 30.19 MB / 350.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.01029/0.3244, allocations: 5.174 MB / 449.1 MB, free: 28.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.3245, allocations: 9.5 kB / 449.1 MB, free: 28.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006048/0.3305, allocations: 1.8 MB / 450.9 MB, free: 27.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00243/0.333, allocations: 1.505 MB / 452.4 MB, free: 26.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.3331, allocations: 176.3 kB / 452.6 MB, free: 26.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003848/0.3335, allocations: 222.2 kB / 452.8 MB, free: 26.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01488/0.3484, allocations: 8.95 MB / 461.8 MB, free: 22.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.743e-05/0.3485, allocations: 33.16 kB / 461.8 MB, free: 22.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003666/0.3489, allocations: 110.1 kB / 461.9 MB, free: 22.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004663/0.3536, allocations: 2.008 MB / 463.9 MB, free: 22.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02207/0.3757, allocations: 7.968 MB / 471.9 MB, free: 19.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04372/0.4194, allocations: 28.56 MB / 0.4887 GB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00757/0.4271, allocations: 2.818 MB / 0.4915 GB, free: 8.406 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/0.4289, allocations: 0.9824 MB / 0.4924 GB, free: 7.422 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009958/0.4389, allocations: 6.465 MB / 0.4988 GB, free: 380 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.4389, allocations: 47.81 kB / 0.4988 GB, free: 324 kB / 366.1 MB Notification: Performance of pre-optimization done (n=155): time 3.587e-06/0.439, allocations: 0 / 0.4988 GB, free: 324 kB / 366.1 MB Notification: Performance of matching and sorting (n=197): time 0.02289/0.4618, allocations: 9.766 MB / 0.5083 GB, free: 6.465 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00855/0.4704, allocations: 6.785 MB / 0.515 GB, free: 15.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006223/0.4767, allocations: 3.027 MB / 0.5179 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002918/0.477, allocations: 49.7 kB / 0.518 GB, free: 12.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002323/0.4794, allocations: 2.348 MB / 0.5203 GB, free: 9.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001146/0.4805, allocations: 0.7282 MB / 0.521 GB, free: 9.215 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002353/0.4829, allocations: 0.9368 MB / 0.5219 GB, free: 8.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.4831, allocations: 305.2 kB / 0.5222 GB, free: 7.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003245/0.4863, allocations: 1.547 MB / 0.5237 GB, free: 6.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00488/0.4912, allocations: 4.12 MB / 0.5277 GB, free: 1.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007348/0.4986, allocations: 6.103 MB / 0.5337 GB, free: 9.652 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.303e-05/0.4987, allocations: 24 kB / 0.5337 GB, free: 9.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.009674/0.5083, allocations: 6.075 MB / 0.5396 GB, free: 3.543 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.511e-05/0.5084, allocations: 41.56 kB / 0.5397 GB, free: 3.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.301e-05/0.5085, allocations: 92 kB / 0.5398 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.5098, allocations: 0.5846 MB / 0.5403 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002782/0.5126, allocations: 1.022 MB / 0.5413 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009854/0.5225, allocations: 9.322 MB / 0.5504 GB, free: 8.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003351/0.5258, allocations: 255 kB / 0.5507 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005684/0.5264, allocations: 284 kB / 0.5509 GB, free: 7.539 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 (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.002957/0.5294, allocations: 1.72 MB / 0.5526 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005249/0.5299, allocations: 276.5 kB / 0.5529 GB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004956/0.5349, allocations: 2.912 MB / 0.5557 GB, free: 2.594 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/0.535, allocations: 39.09 kB / 0.5558 GB, free: 2.559 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-05/0.535, allocations: 4 kB / 0.5558 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/0.5351, allocations: 7.969 kB / 0.5558 GB, free: 2.547 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/0.5514, allocations: 9.332 MB / 0.5649 GB, free: 9.082 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/0.5515, allocations: 4.438 kB / 0.5649 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007793/0.5523, allocations: 211.7 kB / 0.5651 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.5539, allocations: 0.6139 MB / 0.5657 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001223/0.554, allocations: 35.98 kB / 0.5657 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/0.5654, allocations: 9.499 MB / 0.575 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006893/0.5724, allocations: 5.923 MB / 0.5808 GB, free: 8.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007613/0.58, allocations: 4.229 MB / 0.5849 GB, free: 3.789 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/0.5812, allocations: 345.7 kB / 0.5853 GB, free: 3.43 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008068/0.5821, allocations: 35.05 kB / 0.5853 GB, free: 3.398 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/0.5836, allocations: 91.89 kB / 0.5854 GB, free: 3.309 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003539/0.5839, allocations: 129.1 kB / 0.5855 GB, free: 3.184 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/0.5841, allocations: 55.98 kB / 0.5856 GB, free: 3.129 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004082/0.5882, allocations: 1.94 MB / 0.5874 GB, free: 1.184 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5882, allocations: 4 kB / 0.5874 GB, free: 1.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004624/0.5928, allocations: 0.9006 MB / 0.5883 GB, free: 288 kB / 462.1 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.0004591/0.5933, allocations: 176.2 kB / 0.5885 GB, free: 108 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2185/0.8117, allocations: 5.736 MB / 0.5941 GB, free: 138.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/0.8118, allocations: 3.344 kB / 0.5941 GB, free: 138.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002932/0.8148, allocations: 1.746 MB / 0.5958 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003325/0.8181, allocations: 442.6 kB / 0.5962 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.8314, allocations: 7.621 MB / 0.6037 GB, free: 135.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003212/0.8347, allocations: 2.837 MB / 0.6064 GB, free: 134.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003551/0.8382, allocations: 1.316 MB / 0.6077 GB, free: 134.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000758/0.839, allocations: 199.6 kB / 0.6079 GB, free: 134.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.714e-06/0.839, allocations: 0 / 0.6079 GB, free: 134.3 MB / 462.1 MB Notification: Performance of Templates: time 0.07407/0.9131, allocations: 34.98 MB / 0.6421 GB, free: 122.7 MB / 462.1 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)