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.005119/0.005119, allocations: 98.02 kB / 15.73 MB, free: 6.055 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.001273/0.001273, allocations: 193.6 kB / 16.68 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04695/0.04695, allocations: 9.118 MB / 299.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 63.89 kB / 414.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.08438, allocations: 51.44 MB / 465.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01113/0.09554, allocations: 9.727 MB / 475.3 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005287/0.1009, allocations: 2.839 MB / 478.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000645/0.1015, allocations: 43.88 kB / 478.2 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008248/0.1024, allocations: 409.2 kB / 478.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002929/0.1053, allocations: 1.54 MB / 480.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004248/0.1058, allocations: 183.7 kB / 480.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003113/0.1089, allocations: 2.86 MB / 483.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001312/0.1102, allocations: 1.075 MB / 484.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.1114, allocations: 1.023 MB / 485.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001725/0.1131, allocations: 1.467 MB / 486.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003808/0.1135, allocations: 260 kB / 487 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001453/0.115, allocations: 0.8582 MB / 487.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001197/0.1162, allocations: 1.352 MB / 489.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001626/0.1178, allocations: 1.767 MB / 491 MB, free: 8.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005909/0.1237, allocations: 5.485 MB / 496.4 MB, free: 3.141 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1238, allocations: 0 / 496.4 MB, free: 3.141 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.1238, allocations: 4 kB / 496.5 MB, free: 3.137 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001233/0.1239, allocations: 3.938 kB / 496.5 MB, free: 3.133 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.01166/0.1356, allocations: 5.273 MB / 0.49 GB, free: 13.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.1356, allocations: 8.031 kB / 0.49 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007311/0.1364, allocations: 0.6048 MB / 0.4906 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006963/0.1433, allocations: 1.839 MB / 0.4924 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002927/0.1463, allocations: 1.511 MB / 0.4938 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.1465, allocations: 180.2 kB / 0.494 GB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000437/0.1469, allocations: 231.8 kB / 0.4942 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.222/0.3689, allocations: 8.951 MB / 0.503 GB, free: 40.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000197/0.3692, allocations: 23.47 kB / 0.503 GB, free: 40.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001039/0.3702, allocations: 108.7 kB / 0.5031 GB, free: 40.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004036/0.3743, allocations: 2.012 MB / 0.5051 GB, free: 40.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01688/0.3912, allocations: 7.961 MB / 0.5128 GB, free: 38.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0356/0.4268, allocations: 28.55 MB / 0.5407 GB, free: 16.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005698/0.4326, allocations: 2.817 MB / 0.5435 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.4337, allocations: 0.9894 MB / 0.5444 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006489/0.4402, allocations: 6.477 MB / 0.5508 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.4403, allocations: 47.81 kB / 0.5508 GB, free: 5.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.206e-06/0.4403, allocations: 0 / 0.5508 GB, free: 5.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01371/0.454, allocations: 6.546 MB / 0.5572 GB, free: 15.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.4541, allocations: 69.41 kB / 0.5573 GB, free: 15.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004449/0.4586, allocations: 3.04 MB / 0.5602 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001446/0.4587, allocations: 53.7 kB / 0.5603 GB, free: 12.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001916/0.4607, allocations: 2.456 MB / 0.5627 GB, free: 9.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000706/0.4614, allocations: 0.7387 MB / 0.5634 GB, free: 9.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.4627, allocations: 0.9359 MB / 0.5643 GB, free: 8.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.4629, allocations: 305.1 kB / 0.5646 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/0.4655, allocations: 1.504 MB / 0.5661 GB, free: 6.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005004/0.4705, allocations: 4.077 MB / 0.5701 GB, free: 1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007564/0.4781, allocations: 6.035 MB / 0.576 GB, free: 9.719 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-05/0.4782, allocations: 28 kB / 0.576 GB, free: 9.691 MB / 414.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.0107/0.4889, allocations: 5.99 MB / 0.5818 GB, free: 3.688 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.198e-05/0.489, allocations: 43.94 kB / 0.5819 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/0.4891, allocations: 92 kB / 0.582 GB, free: 3.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/0.4908, allocations: 0.6226 MB / 0.5826 GB, free: 2.926 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/0.4939, allocations: 0.9981 MB / 0.5835 GB, free: 1.926 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/0.5057, allocations: 9.258 MB / 0.5926 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003226/0.5089, allocations: 245.9 kB / 0.5928 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004904/0.5094, allocations: 276 kB / 0.5931 GB, free: 7.738 MB / 430.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.002737/0.5122, allocations: 1.722 MB / 0.5948 GB, free: 6.008 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004386/0.5126, allocations: 278.1 kB / 0.595 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004746/0.5174, allocations: 2.662 MB / 0.5976 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001212/0.5175, allocations: 31.98 kB / 0.5977 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.5175, allocations: 14.42 kB / 0.5977 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.099e-05/0.5176, allocations: 7.969 kB / 0.5977 GB, free: 3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01233/0.5299, allocations: 7.261 MB / 0.6048 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.5299, allocations: 4 kB / 0.6048 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009211/0.5309, allocations: 239.6 kB / 0.605 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.5322, allocations: 493.2 kB / 0.6055 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.5324, allocations: 36 kB / 0.6055 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009474/0.5418, allocations: 7.975 MB / 0.6133 GB, free: 2.449 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.5419, allocations: 4 kB / 0.6133 GB, free: 2.445 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006476/0.5484, allocations: 4.019 MB / 0.6172 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007726/0.5492, allocations: 351.2 kB / 0.6176 GB, free: 13.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/0.5495, allocations: 35.98 kB / 0.6176 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009127/0.5504, allocations: 79.91 kB / 0.6177 GB, free: 13.87 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002667/0.5507, allocations: 129.1 kB / 0.6178 GB, free: 13.74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.5508, allocations: 56 kB / 0.6178 GB, free: 13.69 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003047/0.5538, allocations: 1.944 MB / 0.6197 GB, free: 11.74 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5538, allocations: 0 / 0.6197 GB, free: 11.74 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003398/0.5573, allocations: 0.8358 MB / 0.6206 GB, free: 10.9 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.007019/0.5643, allocations: 4.674 MB / 0.6251 GB, free: 6.137 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007337/0.5716, allocations: 4.087 MB / 0.6291 GB, free: 2.039 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.5717, allocations: 4.188 kB / 0.6291 GB, free: 2.035 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/0.5741, allocations: 1.549 MB / 0.6306 GB, free: 456 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002222/0.5764, allocations: 459.8 kB / 0.6311 GB, free: 8 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05178/0.6281, allocations: 33.08 MB / 0.6634 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003228/0.6314, allocations: 2.805 MB / 0.6661 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002992/0.6344, allocations: 1.329 MB / 0.6674 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001957/0.6364, allocations: 1.483 MB / 0.6689 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of SimCode: time 7.01e-07/0.6364, allocations: 0 / 0.6689 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4174/1.054, allocations: 56.16 MB / 0.7237 GB, free: 177 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.17/23.23, allocations: 2.75 kB / 0.7237 GB, free: 177 MB / 0.5294 GB (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)