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.001113/0.001113, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001263/0.001263, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.276/1.276, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1418/0.1418, allocations: 9.098 MB / 299 MB, free: 1.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 67.89 kB / 361.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0824/0.08361, allocations: 51.44 MB / 412.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.1809/0.2646, allocations: 39.67 MB / 452.5 MB, free: 20.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01461/0.2793, allocations: 8.424 MB / 460.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006731/0.286, allocations: 150.5 kB / 461 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009332/0.287, allocations: 340.9 kB / 461.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002602/0.2896, allocations: 1.431 MB / 462.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003578/0.29, allocations: 155.9 kB / 462.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002318/0.2923, allocations: 3.911 MB / 466.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008231/0.2931, allocations: 0.9794 MB / 467.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006548/0.2938, allocations: 0.8908 MB / 468.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.2949, allocations: 1.476 MB / 470.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002409/0.2952, allocations: 156.3 kB / 470.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001068/0.2963, allocations: 0.8003 MB / 471.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007551/0.297, allocations: 1.267 MB / 472.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009773/0.298, allocations: 1.674 MB / 474.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003831/0.3019, allocations: 5.045 MB / 479.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3019, allocations: 3.938 kB / 479.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3019, allocations: 0 / 479.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.746e-05/0.302, allocations: 1.469 kB / 479.1 MB, free: 7.23 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.01299/0.315, allocations: 5.171 MB / 484.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.315, allocations: 10.19 kB / 484.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001493/0.3165, allocations: 0.6047 MB / 484.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006918/0.3235, allocations: 1.812 MB / 486.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002881/0.3264, allocations: 1.501 MB / 488.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.3265, allocations: 178.5 kB / 488.4 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004435/0.3269, allocations: 233.3 kB / 488.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/0.3392, allocations: 8.959 MB / 497.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.84e-05/0.3392, allocations: 27.53 kB / 497.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003193/0.3396, allocations: 107.8 kB / 497.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003074/0.3426, allocations: 2.013 MB / 499.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01472/0.3574, allocations: 7.96 MB / 0.4958 GB, free: 5.391 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03602/0.3934, allocations: 28.57 MB / 0.5237 GB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006802/0.4003, allocations: 2.817 MB / 0.5265 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.4017, allocations: 0.9863 MB / 0.5274 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008124/0.4099, allocations: 6.461 MB / 0.5337 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.4099, allocations: 51.88 kB / 0.5338 GB, free: 13.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.366e-06/0.4099, allocations: 4 kB / 0.5338 GB, free: 13.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01533/0.4253, allocations: 6.478 MB / 0.5401 GB, free: 6.656 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.4253, allocations: 69.41 kB / 0.5402 GB, free: 6.574 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003981/0.4293, allocations: 3.031 MB / 0.5431 GB, free: 3.531 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.4295, allocations: 53.7 kB / 0.5432 GB, free: 3.473 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001306/0.4308, allocations: 2.369 MB / 0.5455 GB, free: 1.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004997/0.4313, allocations: 0.6976 MB / 0.5462 GB, free: 372 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001151/0.4325, allocations: 0.9288 MB / 0.5471 GB, free: 15.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.419e-05/0.4325, allocations: 305.1 kB / 0.5474 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002211/0.4348, allocations: 1.504 MB / 0.5489 GB, free: 13.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003606/0.4384, allocations: 4.086 MB / 0.5528 GB, free: 8.246 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006145/0.4445, allocations: 6.031 MB / 0.5587 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.513e-05/0.4446, allocations: 28 kB / 0.5588 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.008938/0.4535, allocations: 5.963 MB / 0.5646 GB, free: 10.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.054e-05/0.4536, allocations: 44.34 kB / 0.5646 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.51e-05/0.4537, allocations: 95.94 kB / 0.5647 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/0.4552, allocations: 0.6151 MB / 0.5653 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002733/0.458, allocations: 1.006 MB / 0.5663 GB, free: 9.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009384/0.4674, allocations: 8.468 MB / 0.5746 GB, free: 308 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002955/0.4703, allocations: 243.9 kB / 0.5748 GB, free: 64 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.151/0.6213, allocations: 273.4 kB / 0.5751 GB, free: 124 MB / 446.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.002601/0.624, allocations: 1.724 MB / 0.5767 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003915/0.6244, allocations: 269.4 kB / 0.577 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003962/0.6283, allocations: 2.658 MB / 0.5796 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001092/0.6285, allocations: 40.05 kB / 0.5796 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.6285, allocations: 3.156 kB / 0.5796 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.6285, allocations: 10.19 kB / 0.5797 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/0.6391, allocations: 7.321 MB / 0.5868 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/0.6392, allocations: 4.312 kB / 0.5868 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008024/0.64, allocations: 234.7 kB / 0.587 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.6412, allocations: 499 kB / 0.5875 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.765e-05/0.6413, allocations: 41.47 kB / 0.5875 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005943/0.6472, allocations: 7.271 MB / 0.5946 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.6472, allocations: 11.56 kB / 0.5947 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0047/0.6519, allocations: 3.999 MB / 0.5986 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005521/0.6525, allocations: 345.3 kB / 0.5989 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003081/0.6528, allocations: 36.91 kB / 0.5989 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008731/0.6537, allocations: 83.98 kB / 0.599 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.6539, allocations: 127.6 kB / 0.5991 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.414e-05/0.654, allocations: 54 kB / 0.5992 GB, free: 114.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00229/0.6563, allocations: 1.946 MB / 0.6011 GB, free: 113.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6563, allocations: 0 / 0.6011 GB, free: 113.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003144/0.6595, allocations: 0.8319 MB / 0.6019 GB, free: 113.6 MB / 446.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.004869/0.6643, allocations: 4.65 MB / 0.6064 GB, free: 111.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005439/0.6698, allocations: 4.076 MB / 0.6104 GB, free: 109.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.6698, allocations: 3.938 kB / 0.6104 GB, free: 109.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001754/0.6716, allocations: 1.542 MB / 0.6119 GB, free: 109.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001997/0.6736, allocations: 409.8 kB / 0.6123 GB, free: 108.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04721/0.7208, allocations: 38.3 MB / 0.6497 GB, free: 77.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002187/0.723, allocations: 2.811 MB / 0.6525 GB, free: 75.31 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002778/0.7258, allocations: 1.339 MB / 0.6538 GB, free: 74.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001382/0.7272, allocations: 1.484 MB / 0.6552 GB, free: 73.09 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.7272, allocations: 0 / 0.6552 GB, free: 73.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0627/0.7899, allocations: 57.66 MB / 0.7115 GB, free: 16.64 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001288/0.7901, allocations: 226.9 kB / 0.7117 GB, free: 16.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.02/3.81, allocations: 0 / 0.7117 GB, free: 16.39 MB / 446.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)