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.001426/0.001433, allocations: 102.7 kB / 16.35 MB, free: 6.289 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.001365/0.001365, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04363/0.04363, allocations: 9.112 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.91 kB / 363.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2275, allocations: 51.43 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.007461/0.235, allocations: 9.737 MB / 424.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00502/0.2401, allocations: 2.844 MB / 427.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.2412, allocations: 39.94 kB / 427.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008883/0.2421, allocations: 417.1 kB / 427.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002865/0.245, allocations: 1.533 MB / 429.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004395/0.2454, allocations: 183.7 kB / 429.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002523/0.248, allocations: 2.856 MB / 432.4 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001047/0.249, allocations: 1.087 MB / 433.5 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009397/0.25, allocations: 1.027 MB / 434.5 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001292/0.2513, allocations: 1.456 MB / 436 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003173/0.2516, allocations: 260 kB / 436.2 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001259/0.2529, allocations: 0.862 MB / 437.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008502/0.2538, allocations: 1.36 MB / 438.4 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001402/0.2552, allocations: 1.755 MB / 440.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005448/0.2606, allocations: 5.453 MB / 445.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2606, allocations: 0 / 445.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.2607, allocations: 0 / 445.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.401e-05/0.2608, allocations: 0 / 445.6 MB, free: 9.891 MB / 318.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.01215/0.2729, allocations: 5.178 MB / 450.8 MB, free: 4.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.273, allocations: 8.031 kB / 450.8 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006311/0.2793, allocations: 1.809 MB / 452.6 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00308/0.2824, allocations: 1.506 MB / 454.1 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.2825, allocations: 176.3 kB / 454.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004627/0.283, allocations: 227.8 kB / 454.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01356/0.2966, allocations: 8.948 MB / 463.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.2967, allocations: 27.72 kB / 463.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004266/0.2972, allocations: 107.9 kB / 463.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003078/0.3003, allocations: 2.013 MB / 465.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/0.3154, allocations: 7.967 MB / 473.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04069/0.3561, allocations: 28.48 MB / 0.4903 GB, free: 248 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007306/0.3634, allocations: 2.812 MB / 0.4931 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001673/0.3652, allocations: 0.9857 MB / 0.494 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01061/0.3758, allocations: 6.457 MB / 0.5003 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/0.3759, allocations: 51.86 kB / 0.5004 GB, free: 5.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 4.719e-06/0.3759, allocations: 0 / 0.5004 GB, free: 5.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.2053/0.5812, allocations: 6.472 MB / 0.5067 GB, free: 88.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.5813, allocations: 69.2 kB / 0.5068 GB, free: 88.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004388/0.5857, allocations: 3.033 MB / 0.5097 GB, free: 87.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000184/0.5859, allocations: 49.61 kB / 0.5098 GB, free: 87.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001104/0.587, allocations: 2.357 MB / 0.5121 GB, free: 85.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004435/0.5875, allocations: 0.7082 MB / 0.5128 GB, free: 85.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001104/0.5886, allocations: 0.9257 MB / 0.5137 GB, free: 84.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.468e-05/0.5887, allocations: 302.2 kB / 0.514 GB, free: 84.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002418/0.5911, allocations: 1.508 MB / 0.5154 GB, free: 83.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002614/0.5937, allocations: 4.078 MB / 0.5194 GB, free: 79.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004677/0.5984, allocations: 6.034 MB / 0.5253 GB, free: 74.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.093e-05/0.5984, allocations: 29.31 kB / 0.5253 GB, free: 74.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.00755/0.606, allocations: 5.97 MB / 0.5312 GB, free: 71.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.25e-05/0.6061, allocations: 47.94 kB / 0.5312 GB, free: 71.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-05/0.6061, allocations: 88.88 kB / 0.5313 GB, free: 71.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/0.6074, allocations: 0.5752 MB / 0.5319 GB, free: 71.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002453/0.6098, allocations: 0.999 MB / 0.5328 GB, free: 70.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007913/0.6178, allocations: 9.324 MB / 0.5419 GB, free: 60.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003042/0.6208, allocations: 239.9 kB / 0.5422 GB, free: 60.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000351/0.6212, allocations: 277.6 kB / 0.5424 GB, free: 60.32 MB / 382.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.002041/0.6233, allocations: 1.732 MB / 0.5441 GB, free: 58.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003377/0.6236, allocations: 264.5 kB / 0.5444 GB, free: 58.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/0.6272, allocations: 2.652 MB / 0.547 GB, free: 55.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.264e-05/0.6273, allocations: 36.06 kB / 0.547 GB, free: 55.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.6273, allocations: 7.938 kB / 0.547 GB, free: 55.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.6274, allocations: 7.969 kB / 0.547 GB, free: 55.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.6385, allocations: 7.26 MB / 0.5541 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.419e-05/0.6386, allocations: 4 kB / 0.5541 GB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008141/0.6394, allocations: 239.6 kB / 0.5543 GB, free: 47.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009811/0.6404, allocations: 442.6 kB / 0.5548 GB, free: 47.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.6406, allocations: 39.98 kB / 0.5548 GB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006983/0.6475, allocations: 7.861 MB / 0.5625 GB, free: 39.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.6476, allocations: 11.94 kB / 0.5625 GB, free: 39.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004943/0.6525, allocations: 3.992 MB / 0.5664 GB, free: 35.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007953/0.6533, allocations: 345.6 kB / 0.5667 GB, free: 34.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005648/0.6539, allocations: 28.28 kB / 0.5667 GB, free: 34.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.655, allocations: 83.97 kB / 0.5668 GB, free: 34.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.6553, allocations: 129 kB / 0.5669 GB, free: 34.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.771e-05/0.6554, allocations: 63.86 kB / 0.567 GB, free: 34.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00274/0.6581, allocations: 1.936 MB / 0.5689 GB, free: 32.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6581, allocations: 4 kB / 0.5689 GB, free: 32.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003292/0.6614, allocations: 0.8367 MB / 0.5697 GB, free: 31.73 MB / 382.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.0003161/0.6618, allocations: 162.9 kB / 0.5699 GB, free: 31.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005235/0.667, allocations: 4.147 MB / 0.5739 GB, free: 27.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.667, allocations: 5.562 kB / 0.5739 GB, free: 27.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001742/0.6688, allocations: 1.593 MB / 0.5755 GB, free: 25.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/0.6707, allocations: 448.2 kB / 0.5759 GB, free: 25.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009319/0.68, allocations: 7.24 MB / 0.583 GB, free: 18.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002502/0.6825, allocations: 2.801 MB / 0.5857 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002524/0.6851, allocations: 1.325 MB / 0.587 GB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004133/0.6855, allocations: 187.4 kB / 0.5872 GB, free: 13.71 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6855, allocations: 0 / 0.5872 GB, free: 13.71 MB / 382.1 MB Notification: Performance of Templates: time 0.04998/0.7355, allocations: 28.02 MB / 0.6145 GB, free: 1.957 MB / 398.1 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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)