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.001019/0.001019, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001104/0.001104, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 223.2 MB / 239.9 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1551/0.1551, allocations: 9.098 MB / 300.1 MB, free: 2.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003653, allocations: 8 kB / 363 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1118, allocations: 52.43 MB / 415.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2086/0.3205, allocations: 33.78 MB / 449.2 MB, free: 24.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01812/0.3387, allocations: 8.459 MB / 457.7 MB, free: 18.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008469/0.3472, allocations: 150.3 kB / 457.8 MB, free: 18.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005246/0.3525, allocations: 1.686 MB / 459.5 MB, free: 17.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01458/0.3671, allocations: 5.028 MB / 464.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001729/0.3688, allocations: 177.3 kB / 464.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003036/0.3719, allocations: 1.632 MB / 466.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.3732, allocations: 0.9478 MB / 467.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009762/0.3742, allocations: 0.7747 MB / 468 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.3753, allocations: 1.101 MB / 469.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003073/0.3756, allocations: 145.2 kB / 469.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001069/0.3767, allocations: 0.6713 MB / 470 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008059/0.3775, allocations: 1.152 MB / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005766/0.3781, allocations: 0.7087 MB / 471.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004309/0.3824, allocations: 4 MB / 475.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3825, allocations: 0.8438 kB / 475.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3825, allocations: 0 / 475.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002113/0.3827, allocations: 0 / 475.8 MB, free: 11.4 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.01393/0.3966, allocations: 4.594 MB / 480.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.3967, allocations: 9.859 kB / 480.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009413/0.4061, allocations: 2.225 MB / 482.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004664/0.4108, allocations: 1.468 MB / 484.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.411, allocations: 174.2 kB / 484.3 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001101/0.4121, allocations: 228.3 kB / 484.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01644/0.4286, allocations: 8.987 MB / 493.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.4287, allocations: 28.16 kB / 493.5 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003753/0.4291, allocations: 116.1 kB / 493.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002856/0.432, allocations: 2.007 MB / 495.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01555/0.4475, allocations: 8.002 MB / 0.4918 GB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05694/0.5045, allocations: 28.5 MB / 0.5197 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00707/0.5116, allocations: 2.795 MB / 0.5224 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002228/0.5139, allocations: 2.406 MB / 0.5248 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.514, allocations: 47.88 kB / 0.5248 GB, free: 8.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=183): time 4.318e-06/0.514, allocations: 0 / 0.5248 GB, free: 8.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=221): time 0.02093/0.5349, allocations: 7.779 MB / 0.5324 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.535, allocations: 73.41 kB / 0.5325 GB, free: 440 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00425/0.5392, allocations: 2.902 MB / 0.5353 GB, free: 13.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000195/0.5395, allocations: 57.7 kB / 0.5354 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001514/0.541, allocations: 2.281 MB / 0.5376 GB, free: 11.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007805/0.5418, allocations: 0.79 MB / 0.5384 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.542, allocations: 96 kB / 0.5384 GB, free: 10.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003194/0.5423, allocations: 0.5044 MB / 0.5389 GB, free: 9.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002491/0.5448, allocations: 1.512 MB / 0.5404 GB, free: 8.211 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004126/0.549, allocations: 4.066 MB / 0.5444 GB, free: 2.871 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003682/0.5527, allocations: 2.488 MB / 0.5468 GB, free: 396 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.102e-05/0.5527, allocations: 27.95 kB / 0.5468 GB, free: 368 kB / 414.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01032/0.563, allocations: 6.002 MB / 0.5527 GB, free: 10.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.582e-05/0.5631, allocations: 44.78 kB / 0.5527 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/0.5633, allocations: 92 kB / 0.5528 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.5649, allocations: 0.6311 MB / 0.5535 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003318/0.5682, allocations: 1.01 MB / 0.5544 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.5787, allocations: 8.649 MB / 0.5629 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004269/0.583, allocations: 239.9 kB / 0.5631 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006888/0.5837, allocations: 272 kB / 0.5634 GB, free: 14.99 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 409 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 21,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.003091/0.5868, allocations: 1.732 MB / 0.5651 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004396/0.5873, allocations: 268.5 kB / 0.5653 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005013/0.5923, allocations: 3.108 MB / 0.5684 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001154/0.5925, allocations: 35.98 kB / 0.5684 GB, free: 9.797 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.5925, allocations: 4 kB / 0.5684 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.5925, allocations: 11.95 kB / 0.5684 GB, free: 9.781 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01493/0.6074, allocations: 8.135 MB / 0.5764 GB, free: 1.441 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/0.6075, allocations: 8 kB / 0.5764 GB, free: 1.434 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.6085, allocations: 287.5 kB / 0.5766 GB, free: 1.152 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001308/0.6098, allocations: 490.5 kB / 0.5771 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/0.61, allocations: 47.98 kB / 0.5771 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2219/0.8319, allocations: 7.434 MB / 0.5844 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.8319, allocations: 13.72 kB / 0.5844 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006105/0.838, allocations: 5.19 MB / 0.5895 GB, free: 115.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009554/0.839, allocations: 363.8 kB / 0.5898 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003275/0.8394, allocations: 52.47 kB / 0.5899 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009521/0.8403, allocations: 93.69 kB / 0.59 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.8406, allocations: 149.2 kB / 0.5901 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.8407, allocations: 68.02 kB / 0.5902 GB, free: 115.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002481/0.8432, allocations: 1.874 MB / 0.592 GB, free: 114.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8432, allocations: 0 / 0.592 GB, free: 114.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003911/0.8471, allocations: 0.8482 MB / 0.5928 GB, free: 114.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 38 * 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 (160): * Single equations (assignments): 153 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 17,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004481/0.8476, allocations: 183.3 kB / 0.593 GB, free: 114.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005753/0.8533, allocations: 4.177 MB / 0.5971 GB, free: 113 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.8534, allocations: 4.25 kB / 0.5971 GB, free: 113 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002001/0.8554, allocations: 1.66 MB / 0.5987 GB, free: 112.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002141/0.8575, allocations: 401.2 kB / 0.5991 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/0.8701, allocations: 8.931 MB / 0.6078 GB, free: 107.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002932/0.8731, allocations: 2.891 MB / 0.6106 GB, free: 106.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003571/0.8767, allocations: 1.393 MB / 0.612 GB, free: 106 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000614/0.8773, allocations: 199.5 kB / 0.6122 GB, free: 105.9 MB / 446.1 MB Notification: Performance of SimCode: time 2.685e-06/0.8774, allocations: 1.406 kB / 0.6122 GB, free: 105.9 MB / 446.1 MB Notification: Performance of Templates: time 0.07074/0.9481, allocations: 30.28 MB / 0.6418 GB, free: 93.96 MB / 446.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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)