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/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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.001356/0.001356, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 221.5 MB / 229.6 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000919/0.000919, allocations: 91.41 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03736/0.03736, allocations: 8.827 MB / 340.1 MB, free: 6.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.949e-05/1.953e-05, allocations: 2.188 kB / 398.8 MB, free: 47.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 52.4 MB / 451.2 MB, free: 4.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.392/0.499, allocations: 86.8 MB / 0.5254 GB, free: 80.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.4993, allocations: 78.84 kB / 0.5254 GB, free: 80.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1599/0.6592, allocations: 68.21 MB / 0.592 GB, free: 22.67 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.6593, allocations: 0 / 0.592 GB, free: 22.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001164/0.6594, allocations: 60 kB / 0.5921 GB, free: 22.61 MB / 362.7 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.01447/0.6739, allocations: 3.709 MB / 0.5957 GB, free: 18.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.674, allocations: 12.02 kB / 0.5957 GB, free: 18.83 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009589/0.6836, allocations: 1.984 MB / 0.5977 GB, free: 16.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005114/0.6887, allocations: 1.876 MB / 0.5995 GB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.6889, allocations: 104 kB / 0.5996 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001975/0.6909, allocations: 195.9 kB / 0.5998 GB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01134/0.7023, allocations: 5.8 MB / 0.6055 GB, free: 8.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01643/0.7188, allocations: 7.793 MB / 0.6131 GB, free: 0.5781 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001432/0.719, allocations: 27.72 kB / 0.6131 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006143/0.7196, allocations: 16 kB / 0.6131 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001532/0.7211, allocations: 0.9941 MB / 0.6141 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0473/0.7684, allocations: 28.48 MB / 0.6419 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004056/0.7725, allocations: 2.457 MB / 0.6443 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.7739, allocations: 0.8492 MB / 0.6451 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008534/0.7824, allocations: 4.857 MB / 0.6499 GB, free: 9.578 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.066e-05/0.7825, allocations: 43.88 kB / 0.6499 GB, free: 9.527 MB / 410.7 MB Notification: Performance of pre-optimization done (n=146): time 4.849e-06/0.7825, allocations: 0 / 0.6499 GB, free: 9.527 MB / 410.7 MB Notification: Performance of matching and sorting (n=188): time 0.01773/0.8003, allocations: 7.592 MB / 0.6573 GB, free: 1.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.8004, allocations: 76.66 kB / 0.6574 GB, free: 1.754 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003923/0.8043, allocations: 2.174 MB / 0.6595 GB, free: 15.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002672/0.8046, allocations: 25.7 kB / 0.6595 GB, free: 15.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001876/0.8065, allocations: 2.444 MB / 0.6619 GB, free: 13.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009204/0.8074, allocations: 0.6705 MB / 0.6626 GB, free: 12.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.8076, allocations: 0 / 0.6626 GB, free: 12.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004085/0.8081, allocations: 0.5564 MB / 0.6631 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00241/0.8105, allocations: 1.427 MB / 0.6645 GB, free: 10.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004008/0.8145, allocations: 4.108 MB / 0.6685 GB, free: 4.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003564/0.8181, allocations: 2.456 MB / 0.6709 GB, free: 2.453 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.201e-05/0.8181, allocations: 28 kB / 0.671 GB, free: 2.426 MB / 426.7 MB Notification: Performance of matching and sorting (n=643) (initialization): time 0.01019/0.8283, allocations: 5.451 MB / 0.6763 GB, free: 12.96 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.43e-05/0.8284, allocations: 44 kB / 0.6763 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001284/0.8286, allocations: 96 kB / 0.6764 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/0.83, allocations: 0.5603 MB / 0.677 GB, free: 12.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/0.8338, allocations: 1.057 MB / 0.678 GB, free: 11.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.844, allocations: 8.108 MB / 0.6859 GB, free: 2.715 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003821/0.8479, allocations: 151.8 kB / 0.6861 GB, free: 2.566 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001116/0.849, allocations: 295.9 kB / 0.6863 GB, free: 2.277 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pistonRod.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 434 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (576): * Single equations (assignments): 569 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,68.8%) 20,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0009421/0.85, allocations: 365.5 kB / 0.6867 GB, free: 1.914 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3032/1.153, allocations: 2.34 MB / 0.689 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008555/1.154, allocations: 231.5 kB / 0.6892 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005116/1.159, allocations: 2.54 MB / 0.6917 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001252/1.159, allocations: 34.92 kB / 0.6917 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/1.159, allocations: 7.469 kB / 0.6917 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/1.159, allocations: 6.703 kB / 0.6917 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01896/1.178, allocations: 7.987 MB / 0.6995 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.667e-05/1.178, allocations: 5.406 kB / 0.6995 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009509/1.179, allocations: 192.1 kB / 0.6997 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001728/1.181, allocations: 0.5513 MB / 0.7002 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001554/1.181, allocations: 12.27 kB / 0.7003 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008805/1.19, allocations: 8.236 MB / 0.7083 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005507/1.196, allocations: 5.423 MB / 0.7136 GB, free: 99.31 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005835/1.202, allocations: 3.811 MB / 0.7173 GB, free: 98.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009256/1.203, allocations: 305.3 kB / 0.7176 GB, free: 98.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/1.203, allocations: 3.75 kB / 0.7176 GB, free: 98.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009548/1.204, allocations: 65.59 kB / 0.7177 GB, free: 98.74 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003214/1.204, allocations: 113.9 kB / 0.7178 GB, free: 98.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/1.204, allocations: 52.33 kB / 0.7178 GB, free: 98.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002676/1.207, allocations: 1.443 MB / 0.7192 GB, free: 98.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.204e-06/1.207, allocations: 0 / 0.7192 GB, free: 98.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005953/1.213, allocations: 0.7753 MB / 0.72 GB, free: 98.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,68.8%) 16,(2,100.0%) 11} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.005791/1.219, allocations: 4.761 MB / 0.7246 GB, free: 96.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006074/1.225, allocations: 3.797 MB / 0.7284 GB, free: 95.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.225, allocations: 3.656 kB / 0.7284 GB, free: 95.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001924/1.227, allocations: 1.5 MB / 0.7298 GB, free: 94.79 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/1.229, allocations: 236.4 kB / 0.73 GB, free: 94.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01513/1.244, allocations: 6.894 MB / 0.7368 GB, free: 92.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002887/1.247, allocations: 2.896 MB / 0.7396 GB, free: 90.85 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003424/1.25, allocations: 1.303 MB / 0.7409 GB, free: 90.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002051/1.252, allocations: 1.458 MB / 0.7423 GB, free: 89.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.252e-06/1.252, allocations: 0 / 0.7423 GB, free: 89.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09666/1.349, allocations: 57.12 MB / 0.7981 GB, free: 42.38 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001917/1.349, allocations: 165.5 kB / 0.7983 GB, free: 42.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.497/4.846, allocations: 2.812 kB / 0.7983 GB, free: 42.18 MB / 442.7 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)