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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 182.7 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 222.9 MB / 239.7 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009502/0.0009501, allocations: 109.8 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03948/0.03948, allocations: 8.944 MB / 349 MB, free: 28 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009852/0.0009852, allocations: 51.7 kB / 411.1 MB, free: 57.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.0931, allocations: 51.4 MB / 462.5 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2278/0.321, allocations: 39.68 MB / 0.4904 GB, free: 7.434 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02017/0.3412, allocations: 8.427 MB / 0.4986 GB, free: 1.844 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009509/0.3507, allocations: 151 kB / 0.4988 GB, free: 1.824 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.3522, allocations: 344.4 kB / 0.4991 GB, free: 1.695 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004654/0.3569, allocations: 1.43 MB / 0.5005 GB, free: 1.027 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000856/0.3577, allocations: 152 kB / 0.5007 GB, free: 0.9414 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005785/0.3635, allocations: 3.954 MB / 0.5045 GB, free: 15.1 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.3655, allocations: 0.9797 MB / 0.5055 GB, free: 14.46 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001867/0.3674, allocations: 0.8933 MB / 0.5064 GB, free: 13.97 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002192/0.3696, allocations: 1.47 MB / 0.5078 GB, free: 13.12 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004307/0.3701, allocations: 160.9 kB / 0.5079 GB, free: 13.12 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001834/0.3719, allocations: 0.8049 MB / 0.5087 GB, free: 12.75 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001312/0.3732, allocations: 1.27 MB / 0.51 GB, free: 12.04 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001861/0.3751, allocations: 1.671 MB / 0.5116 GB, free: 10.76 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005512/0.3806, allocations: 5.041 MB / 0.5165 GB, free: 5.871 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3807, allocations: 0 / 0.5165 GB, free: 5.871 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3807, allocations: 0 / 0.5165 GB, free: 5.871 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001329/0.3808, allocations: 0 / 0.5165 GB, free: 5.871 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01189/0.3927, allocations: 5.172 MB / 0.5216 GB, free: 0.6328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3928, allocations: 8.031 kB / 0.5216 GB, free: 0.625 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006316/0.3991, allocations: 1.813 MB / 0.5234 GB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003084/0.4022, allocations: 1.502 MB / 0.5248 GB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.4024, allocations: 168.3 kB / 0.525 GB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005413/0.4029, allocations: 235.7 kB / 0.5252 GB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01328/0.4162, allocations: 8.952 MB / 0.5339 GB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.691e-05/0.4163, allocations: 27.81 kB / 0.534 GB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000482/0.4168, allocations: 107.9 kB / 0.5341 GB, free: 3.312 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00309/0.4199, allocations: 2.013 MB / 0.536 GB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01586/0.4358, allocations: 7.968 MB / 0.5438 GB, free: 9.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04167/0.4775, allocations: 28.55 MB / 0.5717 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006636/0.4842, allocations: 2.818 MB / 0.5745 GB, free: 9.219 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/0.4858, allocations: 0.9902 MB / 0.5754 GB, free: 8.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009549/0.4953, allocations: 6.459 MB / 0.5817 GB, free: 1.141 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.4954, allocations: 51.8 kB / 0.5818 GB, free: 1.078 MB / 394.7 MB Notification: Performance of pre-optimization done (n=155): time 2.996e-06/0.4954, allocations: 4 kB / 0.5818 GB, free: 1.074 MB / 394.7 MB Notification: Performance of matching and sorting (n=193): time 0.01448/0.5099, allocations: 6.47 MB / 0.5881 GB, free: 10.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.5099, allocations: 73.41 kB / 0.5882 GB, free: 10.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004902/0.5149, allocations: 3.027 MB / 0.5911 GB, free: 7.461 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.515, allocations: 49.7 kB / 0.5912 GB, free: 7.406 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/0.5165, allocations: 2.35 MB / 0.5935 GB, free: 5.023 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006301/0.5172, allocations: 0.7131 MB / 0.5942 GB, free: 4.301 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001354/0.5185, allocations: 0.9328 MB / 0.5951 GB, free: 3.355 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.5186, allocations: 305.1 kB / 0.5954 GB, free: 3.055 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002369/0.521, allocations: 1.5 MB / 0.5968 GB, free: 1.547 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004085/0.5251, allocations: 4.078 MB / 0.6008 GB, free: 12.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006979/0.5321, allocations: 6.043 MB / 0.6067 GB, free: 4.887 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.69e-05/0.5322, allocations: 24 kB / 0.6067 GB, free: 4.863 MB / 426.7 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.009913/0.5421, allocations: 5.967 MB / 0.6126 GB, free: 14.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.381e-05/0.5422, allocations: 46.5 kB / 0.6126 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/0.5423, allocations: 92.44 kB / 0.6127 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/0.5437, allocations: 0.5761 MB / 0.6133 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002851/0.5466, allocations: 1.01 MB / 0.6143 GB, free: 13.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009454/0.556, allocations: 8.516 MB / 0.6226 GB, free: 4.223 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003012/0.5591, allocations: 239.8 kB / 0.6228 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005899/0.5597, allocations: 276 kB / 0.6231 GB, free: 3.719 MB / 442.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.00264/0.5623, allocations: 1.732 MB / 0.6248 GB, free: 1.977 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004264/0.5628, allocations: 268.6 kB / 0.625 GB, free: 1.711 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004256/0.567, allocations: 2.66 MB / 0.6276 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/0.5671, allocations: 31.98 kB / 0.6276 GB, free: 14.99 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/0.5672, allocations: 7.938 kB / 0.6276 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.5672, allocations: 7.969 kB / 0.6277 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/0.5799, allocations: 7.311 MB / 0.6348 GB, free: 7.504 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.5799, allocations: 4 kB / 0.6348 GB, free: 7.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008534/0.5808, allocations: 235.7 kB / 0.635 GB, free: 7.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.5819, allocations: 463.8 kB / 0.6355 GB, free: 6.809 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/0.5821, allocations: 36.12 kB / 0.6355 GB, free: 6.773 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1924/0.7744, allocations: 7.21 MB / 0.6425 GB, free: 149.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.7745, allocations: 4.906 kB / 0.6425 GB, free: 149.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03433/0.8088, allocations: 21.59 MB / 0.6636 GB, free: 139.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004994/0.8093, allocations: 346 kB / 0.664 GB, free: 139.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003044/0.8097, allocations: 35.59 kB / 0.664 GB, free: 139.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008725/0.8105, allocations: 84.45 kB / 0.6641 GB, free: 139.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.8108, allocations: 132.3 kB / 0.6642 GB, free: 139 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.8109, allocations: 57.56 kB / 0.6643 GB, free: 139 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002585/0.8135, allocations: 1.937 MB / 0.6661 GB, free: 138.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8135, allocations: 0 / 0.6661 GB, free: 138.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004299/0.8178, allocations: 1.077 MB / 0.6672 GB, free: 138.2 MB / 458.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.0004346/0.8183, allocations: 170.5 kB / 0.6674 GB, free: 138.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005798/0.8241, allocations: 4.105 MB / 0.6714 GB, free: 136.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.068e-06/0.8242, allocations: 2.719 kB / 0.6714 GB, free: 136.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002052/0.8262, allocations: 1.606 MB / 0.6729 GB, free: 135.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/0.8289, allocations: 415.7 kB / 0.6733 GB, free: 135.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01529/0.8442, allocations: 10.8 MB / 0.6839 GB, free: 127.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004115/0.8483, allocations: 2.875 MB / 0.6867 GB, free: 125.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003726/0.8521, allocations: 1.342 MB / 0.688 GB, free: 124.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007361/0.8529, allocations: 195.4 kB / 0.6882 GB, free: 124.3 MB / 458.7 MB Notification: Performance of SimCode: time 8.72e-07/0.8529, allocations: 0 / 0.6882 GB, free: 124.3 MB / 458.7 MB Notification: Performance of Templates: time 0.05582/0.9087, allocations: 36 MB / 0.7233 GB, free: 88.52 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)