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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0007621/0.000762, allocations: 180.5 kB / 15.45 MB, free: 0.6523 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.115/1.115, allocations: 223.3 MB / 239.5 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006927/0.0006927, allocations: 99.62 kB / 290.7 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.03548/0.03548, allocations: 9.134 MB / 350.9 MB, free: 4.227 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002587, allocations: 8.75 kB / 414.1 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06487/0.06514, allocations: 52.44 MB / 466.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.02866/0.09383, allocations: 38.61 MB / 0.4933 GB, free: 6.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01372/0.1076, allocations: 8.39 MB / 0.5015 GB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004241/0.1119, allocations: 155.7 kB / 0.5017 GB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007286/0.1126, allocations: 354.1 kB / 0.502 GB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00253/0.1152, allocations: 1.421 MB / 0.5034 GB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.1155, allocations: 163.8 kB / 0.5036 GB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002879/0.1184, allocations: 3.922 MB / 0.5074 GB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008799/0.1193, allocations: 0.9431 MB / 0.5083 GB, free: 6.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007067/0.12, allocations: 0.8632 MB / 0.5092 GB, free: 5.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/0.1213, allocations: 1.459 MB / 0.5106 GB, free: 4.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002095/0.1215, allocations: 152 kB / 0.5107 GB, free: 4.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.1226, allocations: 0.7839 MB / 0.5115 GB, free: 3.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008569/0.1234, allocations: 1.27 MB / 0.5127 GB, free: 2.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.1245, allocations: 1.679 MB / 0.5144 GB, free: 420 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003416/0.1279, allocations: 4.928 MB / 0.5192 GB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1279, allocations: 7.938 kB / 0.5192 GB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.128, allocations: 0 / 0.5192 GB, free: 11.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.201e-05/0.128, allocations: 7.938 kB / 0.5192 GB, free: 11.45 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.008711/0.1367, allocations: 4.441 MB / 0.5235 GB, free: 6.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.1368, allocations: 12.59 kB / 0.5236 GB, free: 6.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006197/0.1374, allocations: 0.6049 MB / 0.5241 GB, free: 6.316 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0059/0.1433, allocations: 1.856 MB / 0.526 GB, free: 4.453 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.1452, allocations: 1.498 MB / 0.5274 GB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.1454, allocations: 180.2 kB / 0.5276 GB, free: 2.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003863/0.1457, allocations: 231.8 kB / 0.5278 GB, free: 2.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1591/0.3048, allocations: 8.947 MB / 0.5365 GB, free: 20.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.658e-05/0.3049, allocations: 29.05 kB / 0.5366 GB, free: 20.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002666/0.3052, allocations: 110.4 kB / 0.5367 GB, free: 20.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0027/0.3079, allocations: 2.013 MB / 0.5386 GB, free: 20.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/0.3203, allocations: 7.961 MB / 0.5464 GB, free: 20.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02336/0.3437, allocations: 28.59 MB / 0.5743 GB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00538/0.3491, allocations: 2.816 MB / 0.5771 GB, free: 2.367 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.3501, allocations: 0.9805 MB / 0.578 GB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006442/0.3566, allocations: 6.475 MB / 0.5844 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.3566, allocations: 43.88 kB / 0.5844 GB, free: 11.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 2.485e-06/0.3566, allocations: 0 / 0.5844 GB, free: 11.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01324/0.3699, allocations: 6.49 MB / 0.5907 GB, free: 5.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.3699, allocations: 69.41 kB / 0.5908 GB, free: 5.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003707/0.3737, allocations: 3.035 MB / 0.5938 GB, free: 1.965 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.3738, allocations: 53.7 kB / 0.5938 GB, free: 1.906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/0.3751, allocations: 2.357 MB / 0.5961 GB, free: 15.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004513/0.3755, allocations: 0.7075 MB / 0.5968 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003909/0.3759, allocations: 394.3 kB / 0.5972 GB, free: 14.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.552e-05/0.376, allocations: 306 kB / 0.5975 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/0.3781, allocations: 1.5 MB / 0.599 GB, free: 12.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003345/0.3814, allocations: 4.085 MB / 0.6029 GB, free: 7.336 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005591/0.387, allocations: 6.036 MB / 0.6088 GB, free: 428 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.918e-05/0.387, allocations: 28 kB / 0.6089 GB, free: 400 kB / 398.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.008007/0.3951, allocations: 5.966 MB / 0.6147 GB, free: 10.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.987e-05/0.3951, allocations: 44.22 kB / 0.6147 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.131e-05/0.3952, allocations: 95.98 kB / 0.6148 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.3966, allocations: 0.6259 MB / 0.6154 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002427/0.399, allocations: 1.002 MB / 0.6164 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008463/0.4075, allocations: 8.469 MB / 0.6247 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002571/0.4101, allocations: 239.9 kB / 0.6249 GB, free: 300 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/0.4104, allocations: 276 kB / 0.6252 GB, free: 24 kB / 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.002142/0.4125, allocations: 1.729 MB / 0.6269 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002763/0.4128, allocations: 268.5 kB / 0.6271 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003832/0.4167, allocations: 2.667 MB / 0.6297 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.365e-05/0.4168, allocations: 28.45 kB / 0.6298 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.4168, allocations: 6.078 kB / 0.6298 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.4168, allocations: 7.969 kB / 0.6298 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009579/0.4264, allocations: 7.319 MB / 0.6369 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.4264, allocations: 4 kB / 0.6369 GB, free: 4.043 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007779/0.4272, allocations: 244.4 kB / 0.6371 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001141/0.4284, allocations: 496.7 kB / 0.6376 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.862e-05/0.4285, allocations: 35.98 kB / 0.6377 GB, free: 3.293 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006727/0.4352, allocations: 7.283 MB / 0.6448 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.4352, allocations: 4 kB / 0.6448 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005022/0.4402, allocations: 3.998 MB / 0.6487 GB, free: 7.586 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005185/0.4408, allocations: 353.6 kB / 0.649 GB, free: 7.219 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.441, allocations: 38.56 kB / 0.6491 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008571/0.4419, allocations: 83.91 kB / 0.6491 GB, free: 7.102 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.4421, allocations: 127.5 kB / 0.6493 GB, free: 6.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.794e-05/0.4422, allocations: 56 kB / 0.6493 GB, free: 6.926 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002417/0.4446, allocations: 1.951 MB / 0.6512 GB, free: 4.969 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4446, allocations: 0 / 0.6512 GB, free: 4.969 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002886/0.4475, allocations: 0.8332 MB / 0.652 GB, free: 4.141 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.005299/0.4528, allocations: 4.651 MB / 0.6566 GB, free: 15.45 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005409/0.4582, allocations: 4.084 MB / 0.6606 GB, free: 11.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.4582, allocations: 0 / 0.6606 GB, free: 11.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001806/0.4601, allocations: 1.538 MB / 0.6621 GB, free: 10.05 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003101/0.4632, allocations: 420.2 kB / 0.6625 GB, free: 9.645 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04448/0.5077, allocations: 38.35 MB / 0.6999 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002531/0.5102, allocations: 2.809 MB / 0.7027 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002819/0.513, allocations: 1.337 MB / 0.704 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001522/0.5146, allocations: 1.483 MB / 0.7054 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of SimCode: time 1.002e-06/0.5146, allocations: 5.469 kB / 0.7054 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1995/0.7141, allocations: 57.05 MB / 0.7611 GB, free: 166.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001339/0.7142, allocations: 217.4 kB / 0.7613 GB, free: 166.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.221, allocations: 4 kB / 0.7613 GB, free: 166.4 MB / 0.4981 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/linux/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)