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.001661/0.001661, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.465/1.465, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1584/0.1584, allocations: 9.112 MB / 299.5 MB, free: 1.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 59.91 kB / 362 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09453/0.09587, allocations: 51.44 MB / 413.5 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2022/0.2981, allocations: 9.726 MB / 423.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006085/0.3042, allocations: 2.838 MB / 426 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.3056, allocations: 40.31 kB / 426.1 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009493/0.3066, allocations: 420.2 kB / 426.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003557/0.3102, allocations: 1.529 MB / 428 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006352/0.3109, allocations: 179.9 kB / 428.2 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002476/0.3133, allocations: 2.843 MB / 431 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.3146, allocations: 1.076 MB / 432.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009691/0.3156, allocations: 1.024 MB / 433.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001273/0.3169, allocations: 1.472 MB / 434.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003578/0.3172, allocations: 257.5 kB / 434.9 MB, free: 34.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.3185, allocations: 0.8609 MB / 435.7 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008451/0.3194, allocations: 1.351 MB / 437.1 MB, free: 33.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00137/0.3208, allocations: 1.766 MB / 438.8 MB, free: 32.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003847/0.3246, allocations: 5.205 MB / 444 MB, free: 30.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3247, allocations: 3.516 kB / 444 MB, free: 30.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3247, allocations: 0 / 444 MB, free: 30.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.459e-05/0.3248, allocations: 2.938 kB / 444.1 MB, free: 30.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.01128/0.336, allocations: 5.17 MB / 449.2 MB, free: 28.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.854e-05/0.3361, allocations: 13.34 kB / 449.2 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008242/0.3369, allocations: 0.5989 MB / 449.8 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006395/0.3434, allocations: 1.811 MB / 451.6 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002907/0.3463, allocations: 1.512 MB / 453.2 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002144/0.3465, allocations: 177.6 kB / 453.3 MB, free: 26.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009994/0.3475, allocations: 224.7 kB / 453.6 MB, free: 26.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.3629, allocations: 8.947 MB / 462.5 MB, free: 22.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001316/0.3631, allocations: 40.56 kB / 462.5 MB, free: 22.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004317/0.3635, allocations: 106.8 kB / 462.6 MB, free: 22.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003901/0.3674, allocations: 2.011 MB / 464.7 MB, free: 22.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01703/0.3845, allocations: 7.963 MB / 472.6 MB, free: 19.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03636/0.4209, allocations: 28.56 MB / 0.4894 GB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007094/0.428, allocations: 2.811 MB / 0.4922 GB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001502/0.4295, allocations: 0.9864 MB / 0.4931 GB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00885/0.4384, allocations: 6.478 MB / 0.4995 GB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.4385, allocations: 51.88 kB / 0.4995 GB, free: 15.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.577e-06/0.4385, allocations: 0 / 0.4995 GB, free: 15.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01669/0.4552, allocations: 6.48 MB / 0.5058 GB, free: 9.242 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/0.4553, allocations: 69.41 kB / 0.5059 GB, free: 9.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005111/0.4604, allocations: 3.031 MB / 0.5089 GB, free: 6.113 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002714/0.4607, allocations: 53.7 kB / 0.5089 GB, free: 6.055 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001905/0.4626, allocations: 2.361 MB / 0.5112 GB, free: 3.691 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007757/0.4634, allocations: 0.7015 MB / 0.5119 GB, free: 2.996 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/0.4647, allocations: 0.9314 MB / 0.5128 GB, free: 2.055 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4649, allocations: 313.1 kB / 0.5131 GB, free: 1.746 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/0.4673, allocations: 1.5 MB / 0.5146 GB, free: 244 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004633/0.4719, allocations: 4.075 MB / 0.5186 GB, free: 10.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0073/0.4792, allocations: 6.024 MB / 0.5244 GB, free: 3.605 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.091e-05/0.4794, allocations: 28 kB / 0.5245 GB, free: 3.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01028/0.4896, allocations: 5.977 MB / 0.5303 GB, free: 13.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.627e-05/0.4897, allocations: 44 kB / 0.5304 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/0.4899, allocations: 88 kB / 0.5304 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001572/0.4914, allocations: 0.6276 MB / 0.531 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003108/0.4946, allocations: 1.006 MB / 0.532 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01021/0.5048, allocations: 9.258 MB / 0.5411 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003491/0.5083, allocations: 241.8 kB / 0.5413 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005756/0.5089, allocations: 276 kB / 0.5416 GB, free: 1.645 MB / 414.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.003031/0.5119, allocations: 1.739 MB / 0.5433 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005061/0.5125, allocations: 264.6 kB / 0.5435 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004475/0.5169, allocations: 2.66 MB / 0.5461 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001101/0.5171, allocations: 27.98 kB / 0.5461 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.5171, allocations: 15.98 kB / 0.5462 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.5171, allocations: 7.969 kB / 0.5462 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.5292, allocations: 7.322 MB / 0.5533 GB, free: 5.465 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.5293, allocations: 4 kB / 0.5533 GB, free: 5.461 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008955/0.5302, allocations: 235.7 kB / 0.5535 GB, free: 5.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.5315, allocations: 494.6 kB / 0.554 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001443/0.5316, allocations: 39.98 kB / 0.5541 GB, free: 4.703 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008259/0.5399, allocations: 7.974 MB / 0.5618 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.5399, allocations: 7.938 kB / 0.5618 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005812/0.5457, allocations: 3.993 MB / 0.5657 GB, free: 8.238 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008033/0.5466, allocations: 345.7 kB / 0.5661 GB, free: 7.879 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003446/0.5469, allocations: 39.11 kB / 0.5661 GB, free: 7.844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009808/0.5479, allocations: 83.91 kB / 0.5662 GB, free: 7.762 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002571/0.5482, allocations: 117 kB / 0.5663 GB, free: 7.645 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.5483, allocations: 67.98 kB / 0.5664 GB, free: 7.578 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003167/0.5515, allocations: 1.947 MB / 0.5683 GB, free: 5.625 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5515, allocations: 0 / 0.5683 GB, free: 5.625 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004239/0.5557, allocations: 0.8337 MB / 0.5691 GB, free: 4.793 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.00708/0.5628, allocations: 4.645 MB / 0.5736 GB, free: 60 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.011/0.5739, allocations: 5.685 MB / 0.5792 GB, free: 10.37 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/0.5739, allocations: 0 / 0.5792 GB, free: 10.37 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002332/0.5763, allocations: 1.554 MB / 0.5807 GB, free: 8.773 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.5787, allocations: 446.5 kB / 0.5811 GB, free: 8.363 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2382/0.8169, allocations: 36.64 MB / 0.6169 GB, free: 117.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002547/0.8195, allocations: 2.8 MB / 0.6196 GB, free: 116.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002962/0.8224, allocations: 1.333 MB / 0.6209 GB, free: 116.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001554/0.824, allocations: 1.477 MB / 0.6224 GB, free: 115.1 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.824, allocations: 4 kB / 0.6224 GB, free: 115.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1029/0.9269, allocations: 58.94 MB / 0.6799 GB, free: 79.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.93, allocations: 14.81 kB / 0.68 GB, free: 79.41 MB / 462.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)