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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005985/0.005985, allocations: 104.4 kB / 15.73 MB, free: 6.035 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.0013/0.0013, allocations: 192.5 kB / 16.67 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1606/0.1606, allocations: 9.108 MB / 299.6 MB, free: 1.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 60.12 kB / 414.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.242, allocations: 51.43 MB / 465.6 MB, free: 17.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.00847/0.2505, allocations: 9.728 MB / 475.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005338/0.2559, allocations: 2.837 MB / 478.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00159/0.2575, allocations: 47.03 kB / 478.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.2588, allocations: 415.1 kB / 478.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003852/0.2627, allocations: 1.53 MB / 480.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007241/0.2635, allocations: 187.8 kB / 480.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003641/0.2671, allocations: 2.86 MB / 483.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001401/0.2686, allocations: 1.074 MB / 484.2 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001677/0.2703, allocations: 1.03 MB / 485.3 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002026/0.2723, allocations: 1.463 MB / 486.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007147/0.273, allocations: 259.5 kB / 487 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001896/0.2749, allocations: 0.8624 MB / 487.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00135/0.2763, allocations: 1.35 MB / 489.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002057/0.2784, allocations: 1.765 MB / 491 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006667/0.2851, allocations: 5.479 MB / 496.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.2851, allocations: 0 / 496.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2851, allocations: 4 kB / 496.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001776/0.2853, allocations: 0 / 496.4 MB, free: 13.26 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.01312/0.2984, allocations: 5.172 MB / 0.4899 GB, free: 8.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.2985, allocations: 8.031 kB / 0.4899 GB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001153/0.2997, allocations: 0.601 MB / 0.4904 GB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006611/0.3063, allocations: 1.817 MB / 0.4922 GB, free: 5.582 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003245/0.3096, allocations: 1.522 MB / 0.4937 GB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.3098, allocations: 176.3 kB / 0.4939 GB, free: 3.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007989/0.3106, allocations: 227.8 kB / 0.4941 GB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/0.3249, allocations: 8.948 MB / 0.5028 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.555e-05/0.325, allocations: 35.7 kB / 0.5029 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003634/0.3254, allocations: 111.8 kB / 0.503 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002964/0.3283, allocations: 2.009 MB / 0.5049 GB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01553/0.3439, allocations: 7.959 MB / 0.5127 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04069/0.3846, allocations: 28.47 MB / 0.5405 GB, free: 2.996 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007122/0.3918, allocations: 2.818 MB / 0.5433 GB, free: 60 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.3934, allocations: 0.9857 MB / 0.5442 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00914/0.4026, allocations: 6.458 MB / 0.5505 GB, free: 7.984 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.4027, allocations: 43.88 kB / 0.5506 GB, free: 7.934 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 5.34e-06/0.4027, allocations: 0 / 0.5506 GB, free: 7.934 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.02364/0.4263, allocations: 9.791 MB / 0.5601 GB, free: 14.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008561/0.435, allocations: 6.766 MB / 0.5667 GB, free: 6.949 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005765/0.4408, allocations: 3.035 MB / 0.5697 GB, free: 3.902 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002827/0.4411, allocations: 53.7 kB / 0.5698 GB, free: 3.844 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001696/0.4428, allocations: 2.358 MB / 0.5721 GB, free: 1.453 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008459/0.4437, allocations: 0.7285 MB / 0.5728 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001985/0.4457, allocations: 0.9291 MB / 0.5737 GB, free: 15.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.345e-05/0.4458, allocations: 309.2 kB / 0.574 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002764/0.4486, allocations: 1.536 MB / 0.5755 GB, free: 13.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004648/0.4532, allocations: 4.11 MB / 0.5795 GB, free: 8.539 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007335/0.4606, allocations: 6.094 MB / 0.5854 GB, free: 1.188 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.032e-05/0.4607, allocations: 28 kB / 0.5855 GB, free: 1.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.2088/0.6695, allocations: 6.033 MB / 0.5914 GB, free: 107.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.177e-05/0.6696, allocations: 43.25 kB / 0.5914 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000157/0.6698, allocations: 90.67 kB / 0.5915 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001901/0.6717, allocations: 0.617 MB / 0.5921 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003498/0.6752, allocations: 1.023 MB / 0.5931 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009704/0.6849, allocations: 9.252 MB / 0.6021 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003474/0.6884, allocations: 257.8 kB / 0.6024 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007011/0.6892, allocations: 280.8 kB / 0.6026 GB, free: 101.1 MB / 462.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.002968/0.6921, allocations: 1.725 MB / 0.6043 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004297/0.6926, allocations: 272 kB / 0.6046 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004834/0.6974, allocations: 2.881 MB / 0.6074 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001089/0.6976, allocations: 30.08 kB / 0.6074 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.6976, allocations: 6.75 kB / 0.6074 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/0.6976, allocations: 11.53 kB / 0.6074 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/0.7132, allocations: 9.209 MB / 0.6164 GB, free: 95.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/0.7132, allocations: 7.766 kB / 0.6164 GB, free: 95.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007571/0.714, allocations: 207.5 kB / 0.6166 GB, free: 95.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/0.7155, allocations: 0.6317 MB / 0.6173 GB, free: 95.41 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001546/0.7157, allocations: 46.72 kB / 0.6173 GB, free: 95.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00881/0.7245, allocations: 9.35 MB / 0.6264 GB, free: 89.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005515/0.7301, allocations: 5.936 MB / 0.6322 GB, free: 84.49 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005776/0.7359, allocations: 4.19 MB / 0.6363 GB, free: 80.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008801/0.7368, allocations: 337.7 kB / 0.6366 GB, free: 79.88 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000587/0.7374, allocations: 36 kB / 0.6367 GB, free: 79.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.7386, allocations: 89.61 kB / 0.6368 GB, free: 79.76 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002797/0.7389, allocations: 140.3 kB / 0.6369 GB, free: 79.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.897e-05/0.739, allocations: 59.98 kB / 0.637 GB, free: 79.57 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002456/0.7415, allocations: 1.944 MB / 0.6388 GB, free: 77.62 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7415, allocations: 0 / 0.6388 GB, free: 77.62 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003926/0.7454, allocations: 0.8865 MB / 0.6397 GB, free: 76.74 MB / 462.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.005439/0.7509, allocations: 4.855 MB / 0.6445 GB, free: 71.81 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005842/0.7568, allocations: 4.164 MB / 0.6485 GB, free: 67.64 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.116e-06/0.7568, allocations: 0.8125 kB / 0.6485 GB, free: 67.64 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002137/0.759, allocations: 1.665 MB / 0.6501 GB, free: 65.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002657/0.7616, allocations: 452.2 kB / 0.6506 GB, free: 65.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0473/0.809, allocations: 33.39 MB / 0.6832 GB, free: 28.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003327/0.8123, allocations: 2.826 MB / 0.686 GB, free: 25.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003019/0.8154, allocations: 1.325 MB / 0.6872 GB, free: 24.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002069/0.8175, allocations: 1.46 MB / 0.6887 GB, free: 22.88 MB / 462.1 MB Notification: Performance of SimCode: time 2.304e-06/0.8175, allocations: 4 kB / 0.6887 GB, free: 22.87 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/0.9178, allocations: 59.94 MB / 0.7472 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.53/42.45, allocations: 4 kB / 0.7472 GB, free: 11.21 MB / 0.4981 GB (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/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)