Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",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.0007603/0.0007603, allocations: 178.9 kB / 15.44 MB, free: 0.6562 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.116/1.116, allocations: 223.3 MB / 239.5 MB, free: 5.367 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.0006842/0.0006842, allocations: 87.7 kB / 290.6 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.03534/0.03534, allocations: 9.119 MB / 350.9 MB, free: 4.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002531/0.0002531, allocations: 8.844 kB / 414.1 MB, free: 42.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06306/0.06333, allocations: 52.44 MB / 466.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.02885/0.09221, allocations: 38.61 MB / 0.4933 GB, free: 6.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01292/0.1052, allocations: 8.4 MB / 0.5015 GB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004525/0.1097, allocations: 147.8 kB / 0.5017 GB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007674/0.1105, allocations: 358.1 kB / 0.502 GB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002591/0.1131, allocations: 1.421 MB / 0.5034 GB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003458/0.1135, allocations: 155.8 kB / 0.5036 GB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002755/0.1162, allocations: 3.928 MB / 0.5074 GB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008272/0.1171, allocations: 0.9469 MB / 0.5083 GB, free: 6.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006325/0.1177, allocations: 0.8594 MB / 0.5092 GB, free: 5.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.119, allocations: 1.463 MB / 0.5106 GB, free: 4.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002094/0.1192, allocations: 144 kB / 0.5107 GB, free: 4.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009647/0.1202, allocations: 0.7878 MB / 0.5115 GB, free: 3.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008176/0.121, allocations: 1.27 MB / 0.5127 GB, free: 2.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.122, allocations: 1.679 MB / 0.5144 GB, free: 420 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003348/0.1254, allocations: 4.932 MB / 0.5192 GB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.1254, allocations: 0 / 0.5192 GB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.1254, allocations: 0 / 0.5192 GB, free: 11.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.378e-05/0.1255, allocations: 0 / 0.5192 GB, free: 11.46 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.008695/0.1342, allocations: 4.452 MB / 0.5235 GB, free: 6.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1342, allocations: 8.594 kB / 0.5235 GB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006298/0.1349, allocations: 0.6049 MB / 0.5241 GB, free: 6.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005849/0.1407, allocations: 1.856 MB / 0.526 GB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.1426, allocations: 1.494 MB / 0.5274 GB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.1428, allocations: 176.3 kB / 0.5276 GB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003907/0.1432, allocations: 239.6 kB / 0.5278 GB, free: 2.508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1453/0.2884, allocations: 8.947 MB / 0.5365 GB, free: 62.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.924e-05/0.2885, allocations: 27.27 kB / 0.5366 GB, free: 62.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002708/0.2888, allocations: 111.1 kB / 0.5367 GB, free: 62.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002653/0.2915, allocations: 2.013 MB / 0.5386 GB, free: 62.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01154/0.303, allocations: 7.968 MB / 0.5464 GB, free: 62.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02101/0.3241, allocations: 28.58 MB / 0.5743 GB, free: 38.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005188/0.3293, allocations: 2.821 MB / 0.5771 GB, free: 35.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.3303, allocations: 0.9863 MB / 0.578 GB, free: 34.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005253/0.3356, allocations: 6.461 MB / 0.5844 GB, free: 27.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.609e-05/0.3356, allocations: 55.8 kB / 0.5844 GB, free: 27.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=155): time 2.615e-06/0.3356, allocations: 0 / 0.5844 GB, free: 27.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=197): time 0.01606/0.3517, allocations: 9.774 MB / 0.594 GB, free: 18.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005361/0.357, allocations: 6.469 MB / 0.6003 GB, free: 11.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00255/0.3596, allocations: 3.045 MB / 0.6032 GB, free: 8.207 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.397e-05/0.3597, allocations: 49.7 kB / 0.6033 GB, free: 8.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007834/0.3605, allocations: 2.35 MB / 0.6056 GB, free: 5.801 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002999/0.3608, allocations: 0.7219 MB / 0.6063 GB, free: 5.086 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003245/0.3611, allocations: 396.3 kB / 0.6067 GB, free: 4.691 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 2.618e-05/0.3612, allocations: 309.2 kB / 0.607 GB, free: 4.391 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.3629, allocations: 1.532 MB / 0.6085 GB, free: 2.852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002892/0.3658, allocations: 4.106 MB / 0.6125 GB, free: 13.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005704/0.3715, allocations: 6.096 MB / 0.6184 GB, free: 6.152 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.732e-05/0.3715, allocations: 24 kB / 0.6184 GB, free: 6.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.00793/0.3795, allocations: 6.042 MB / 0.6243 GB, free: 80 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.226e-05/0.3795, allocations: 44 kB / 0.6244 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.653e-05/0.3796, allocations: 88.05 kB / 0.6245 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.3809, allocations: 0.6322 MB / 0.6251 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002484/0.3834, allocations: 1.018 MB / 0.6261 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008229/0.3917, allocations: 8.484 MB / 0.6344 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002236/0.3939, allocations: 255.7 kB / 0.6346 GB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002839/0.3942, allocations: 276 kB / 0.6349 GB, free: 4.887 MB / 398.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 (554): * Single equations (assignments): 547 * 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.001981/0.3962, allocations: 1.726 MB / 0.6366 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.3965, allocations: 272.5 kB / 0.6368 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004192/0.4007, allocations: 2.884 MB / 0.6396 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.255e-05/0.4008, allocations: 27.98 kB / 0.6397 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.4008, allocations: 8 kB / 0.6397 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.4008, allocations: 11.97 kB / 0.6397 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/0.4129, allocations: 9.286 MB / 0.6488 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.4129, allocations: 4 kB / 0.6488 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006949/0.4136, allocations: 212.1 kB / 0.649 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/0.4151, allocations: 0.6376 MB / 0.6496 GB, free: 5.652 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.118e-05/0.4152, allocations: 35.98 kB / 0.6496 GB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008699/0.4239, allocations: 8.613 MB / 0.658 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005651/0.4295, allocations: 5.689 MB / 0.6636 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005559/0.4351, allocations: 4.187 MB / 0.6677 GB, free: 2.402 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005534/0.4357, allocations: 365.5 kB / 0.668 GB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002451/0.4359, allocations: 32 kB / 0.6681 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008558/0.4368, allocations: 87.95 kB / 0.6681 GB, free: 1.906 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002438/0.437, allocations: 135.7 kB / 0.6683 GB, free: 1.777 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.022e-05/0.4371, allocations: 55.98 kB / 0.6683 GB, free: 1.723 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002369/0.4395, allocations: 1.944 MB / 0.6702 GB, free: 15.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4395, allocations: 288 / 0.6702 GB, free: 15.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002939/0.4425, allocations: 0.8943 MB / 0.6711 GB, free: 14.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * 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 (125): * Single equations (assignments): 118 * 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%), (2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005624/0.4481, allocations: 4.859 MB / 0.6758 GB, free: 9.957 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005259/0.4534, allocations: 4.144 MB / 0.6799 GB, free: 5.793 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4534, allocations: 0 / 0.6799 GB, free: 5.793 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001964/0.4554, allocations: 1.664 MB / 0.6815 GB, free: 4.094 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/0.458, allocations: 414.8 kB / 0.6819 GB, free: 3.691 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1785/0.6366, allocations: 38.86 MB / 0.7198 GB, free: 136.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002332/0.6389, allocations: 2.83 MB / 0.7226 GB, free: 136.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002571/0.6415, allocations: 1.326 MB / 0.7239 GB, free: 136.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001275/0.6428, allocations: 1.468 MB / 0.7253 GB, free: 136 MB / 462.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6428, allocations: 4 kB / 0.7253 GB, free: 136 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05578/0.6986, allocations: 59.71 MB / 0.7837 GB, free: 84.32 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001358/0.6988, allocations: 253.7 kB / 0.7839 GB, free: 84.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.577/3.275, allocations: 0 / 0.7839 GB, free: 84.06 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)