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: "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005571/0.005571, allocations: 100.5 kB / 15.73 MB, free: 6.039 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.001381/0.001381, allocations: 186.7 kB / 16.67 MB, free: 5.969 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1548/0.1548, allocations: 9.099 MB / 299.6 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 63.91 kB / 414.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2553, allocations: 51.43 MB / 465.6 MB, free: 17.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.00936/0.2647, allocations: 9.727 MB / 475.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005957/0.2707, allocations: 2.838 MB / 478.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00186/0.2726, allocations: 40.53 kB / 478.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.2742, allocations: 416 kB / 478.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004959/0.2792, allocations: 1.538 MB / 480.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009547/0.2802, allocations: 187.1 kB / 480.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004453/0.2847, allocations: 2.856 MB / 483.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001918/0.2866, allocations: 1.084 MB / 484.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002678/0.2893, allocations: 1.029 MB / 485.3 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002907/0.2922, allocations: 1.459 MB / 486.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009512/0.2932, allocations: 260.1 kB / 487 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00275/0.296, allocations: 0.8648 MB / 487.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001745/0.2977, allocations: 1.35 MB / 489.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00279/0.3005, allocations: 1.766 MB / 491 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006326/0.3069, allocations: 5.474 MB / 496.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3069, allocations: 0 / 496.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3069, allocations: 0 / 496.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000129/0.3071, allocations: 0 / 496.4 MB, free: 13.29 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.01282/0.3199, allocations: 5.178 MB / 0.4899 GB, free: 8.047 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.3199, allocations: 12.03 kB / 0.4899 GB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008599/0.3208, allocations: 0.5971 MB / 0.4904 GB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006278/0.3271, allocations: 1.813 MB / 0.4922 GB, free: 5.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002805/0.3299, allocations: 1.518 MB / 0.4937 GB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.3301, allocations: 176.3 kB / 0.4939 GB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00047/0.3306, allocations: 231.8 kB / 0.4941 GB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/0.3448, allocations: 8.952 MB / 0.5028 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.251e-05/0.345, allocations: 27.72 kB / 0.5029 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003399/0.3453, allocations: 107.8 kB / 0.503 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003/0.3483, allocations: 2.013 MB / 0.5049 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01654/0.3649, allocations: 7.974 MB / 0.5127 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04154/0.4065, allocations: 28.46 MB / 0.5405 GB, free: 3.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006786/0.4133, allocations: 2.818 MB / 0.5433 GB, free: 84 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.4149, allocations: 0.9818 MB / 0.5442 GB, free: 15.1 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009584/0.4245, allocations: 6.458 MB / 0.5505 GB, free: 8.012 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.065e-05/0.4246, allocations: 51.88 kB / 0.5506 GB, free: 7.953 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.449e-06/0.4246, allocations: 0 / 0.5506 GB, free: 7.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=193): time 0.01672/0.4413, allocations: 6.493 MB / 0.5569 GB, free: 1.438 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.4414, allocations: 69.41 kB / 0.557 GB, free: 1.359 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004981/0.4464, allocations: 3.035 MB / 0.5599 GB, free: 14.31 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002134/0.4466, allocations: 57.69 kB / 0.56 GB, free: 14.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/0.4484, allocations: 2.361 MB / 0.5623 GB, free: 11.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000793/0.4492, allocations: 0.7054 MB / 0.563 GB, free: 11.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001637/0.4508, allocations: 0.9249 MB / 0.5639 GB, free: 10.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.4509, allocations: 305.1 kB / 0.5642 GB, free: 9.902 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002612/0.4535, allocations: 1.512 MB / 0.5657 GB, free: 8.383 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004307/0.4579, allocations: 4.078 MB / 0.5697 GB, free: 3.027 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007171/0.4651, allocations: 6.041 MB / 0.5756 GB, free: 11.73 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-05/0.4652, allocations: 24 kB / 0.5756 GB, free: 11.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01166/0.4768, allocations: 5.966 MB / 0.5814 GB, free: 5.723 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.933e-05/0.477, allocations: 48.06 kB / 0.5814 GB, free: 5.676 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/0.4771, allocations: 96.06 kB / 0.5815 GB, free: 5.582 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001677/0.4788, allocations: 0.6232 MB / 0.5821 GB, free: 4.949 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003192/0.482, allocations: 0.9982 MB / 0.5831 GB, free: 3.949 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2359/0.718, allocations: 9.23 MB / 0.5921 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003563/0.7216, allocations: 246.7 kB / 0.5924 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008806/0.7225, allocations: 279 kB / 0.5926 GB, free: 104.4 MB / 462.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 {(3,21,88.9%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.004008/0.7265, allocations: 1.724 MB / 0.5943 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006737/0.7272, allocations: 265.6 kB / 0.5946 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005685/0.7329, allocations: 2.662 MB / 0.5972 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001458/0.7331, allocations: 33.97 kB / 0.5972 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.643e-05/0.7331, allocations: 6.719 kB / 0.5972 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.677e-05/0.7331, allocations: 7.688 kB / 0.5972 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01594/0.7491, allocations: 7.261 MB / 0.6043 GB, free: 99.97 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/0.7491, allocations: 8.969 kB / 0.6043 GB, free: 99.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009576/0.7501, allocations: 237.6 kB / 0.6045 GB, free: 99.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001312/0.7514, allocations: 494.1 kB / 0.605 GB, free: 99.84 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002104/0.7517, allocations: 33.69 kB / 0.605 GB, free: 99.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007602/0.7593, allocations: 7.965 MB / 0.6128 GB, free: 94.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.7593, allocations: 10.97 kB / 0.6128 GB, free: 94.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006998/0.7663, allocations: 3.99 MB / 0.6167 GB, free: 92.54 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.7674, allocations: 340.6 kB / 0.6171 GB, free: 92.33 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008281/0.7682, allocations: 41.72 kB / 0.6171 GB, free: 92.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001676/0.7699, allocations: 77.09 kB / 0.6172 GB, free: 92.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00034/0.7703, allocations: 127.7 kB / 0.6173 GB, free: 92.26 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/0.7705, allocations: 59.92 kB / 0.6174 GB, free: 92.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003917/0.7744, allocations: 1.948 MB / 0.6193 GB, free: 91.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7744, allocations: 3.75 kB / 0.6193 GB, free: 91.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004964/0.7794, allocations: 0.8311 MB / 0.6201 GB, free: 91.45 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 {(3,17,88.9%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006335/0.7858, allocations: 4.643 MB / 0.6246 GB, free: 89.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006481/0.7923, allocations: 4.096 MB / 0.6286 GB, free: 87.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/0.7923, allocations: 320 / 0.6286 GB, free: 87.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001887/0.7942, allocations: 1.543 MB / 0.6301 GB, free: 86.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/0.7969, allocations: 455 kB / 0.6305 GB, free: 86.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04655/0.8435, allocations: 32.93 MB / 0.6627 GB, free: 49.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004188/0.8477, allocations: 2.801 MB / 0.6654 GB, free: 46.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003304/0.8511, allocations: 1.335 MB / 0.6667 GB, free: 45.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002386/0.8535, allocations: 1.483 MB / 0.6682 GB, free: 44.04 MB / 462.1 MB Notification: Performance of SimCode: time 2.044e-06/0.8535, allocations: 0 / 0.6682 GB, free: 44.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09762/0.9512, allocations: 57 MB / 0.7239 GB, free: 3.293 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.42/22.37, allocations: 14.62 kB / 0.7239 GB, free: 3.281 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)