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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009333/0.0009333, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002196/0.002196, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.896/0.896, allocations: 177.2 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.02783/0.02783, allocations: 7.116 MB / 266.3 MB, free: 6.332 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 392.4 MB, free: 4.004 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.027e-05/2.22e-05, allocations: 6.281 kB / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.008052/0.008074, allocations: 8.502 MB / 400.9 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004714/0.01279, allocations: 2.749 MB / 403.6 MB, free: 8.695 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.01393, allocations: 47.81 kB / 403.7 MB, free: 8.648 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009094/0.01484, allocations: 432.9 kB / 404.1 MB, free: 8.223 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003277/0.01812, allocations: 1.629 MB / 405.7 MB, free: 6.586 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006769/0.0188, allocations: 187.6 kB / 405.9 MB, free: 6.402 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002809/0.02161, allocations: 2.894 MB / 408.8 MB, free: 3.5 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.02278, allocations: 0.8994 MB / 409.7 MB, free: 2.57 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001731/0.02451, allocations: 1.574 MB / 411.3 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1491/0.1736, allocations: 1.445 MB / 412.7 MB, free: 16.34 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007917/0.1744, allocations: 259.3 kB / 413 MB, free: 16.34 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001576/0.176, allocations: 0.8539 MB / 413.8 MB, free: 16.34 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.1771, allocations: 1.411 MB / 415.3 MB, free: 16.34 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001322/0.1785, allocations: 0.939 MB / 416.2 MB, free: 16.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006226/0.1847, allocations: 5.442 MB / 421.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.1847, allocations: 3.281 kB / 421.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1847, allocations: 0 / 421.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002161/0.1849, allocations: 1.406 kB / 421.6 MB, free: 15.93 MB / 330.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.01196/0.1969, allocations: 5.237 MB / 426.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.1969, allocations: 10 kB / 426.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009927/0.1979, allocations: 0.6028 MB / 427.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003994/0.2019, allocations: 1.919 MB / 429.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003069/0.205, allocations: 1.445 MB / 430.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.2051, allocations: 176.5 kB / 431 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005335/0.2056, allocations: 233.5 kB / 431.3 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.2174, allocations: 8.942 MB / 440.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.974e-05/0.2174, allocations: 27.06 kB / 440.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000261/0.2177, allocations: 107.4 kB / 440.3 MB, free: 7.316 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001862/0.2196, allocations: 2.018 MB / 442.3 MB, free: 6.027 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01205/0.2316, allocations: 7.9 MB / 450.2 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03204/0.2637, allocations: 27.04 MB / 477.3 MB, free: 3.008 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004977/0.2686, allocations: 2.384 MB / 479.7 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/0.2699, allocations: 0.9039 MB / 480.6 MB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005987/0.2759, allocations: 3.848 MB / 484.4 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.2759, allocations: 55.86 kB / 484.5 MB, free: 11.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=155): time 4.789e-06/0.2759, allocations: 3.938 kB / 484.5 MB, free: 11.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=197): time 0.01553/0.2914, allocations: 9.675 MB / 494.2 MB, free: 2.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009412/0.3008, allocations: 11.11 MB / 0.4934 GB, free: 6.625 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003906/0.3048, allocations: 3.163 MB / 0.4965 GB, free: 3.449 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000267/0.305, allocations: 49.7 kB / 0.4966 GB, free: 3.395 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.3062, allocations: 2.436 MB / 0.4989 GB, free: 0.9688 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007891/0.307, allocations: 0.746 MB / 0.4997 GB, free: 240 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/0.308, allocations: 0.9331 MB / 0.5006 GB, free: 15.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.097e-05/0.3081, allocations: 311.2 kB / 0.5009 GB, free: 15 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.3103, allocations: 1.516 MB / 0.5024 GB, free: 13.47 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003071/0.3134, allocations: 4.104 MB / 0.5064 GB, free: 8.098 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005801/0.3192, allocations: 6.085 MB / 0.5123 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.377e-05/0.3192, allocations: 24 kB / 0.5123 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.009276/0.3285, allocations: 6.022 MB / 0.5182 GB, free: 10.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.247e-05/0.3286, allocations: 44 kB / 0.5182 GB, free: 10.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/0.3287, allocations: 99.92 kB / 0.5183 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009418/0.3296, allocations: 0.5722 MB / 0.5189 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/0.3319, allocations: 1.018 MB / 0.5199 GB, free: 8.992 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007993/0.3399, allocations: 8.859 MB / 0.5285 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002782/0.3426, allocations: 259.8 kB / 0.5288 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005395/0.3432, allocations: 279.3 kB / 0.5291 GB, free: 15.27 MB / 442.7 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 {(4,20,68.8%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.002663/0.3458, allocations: 1.716 MB / 0.5307 GB, free: 13.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004082/0.3463, allocations: 290.1 kB / 0.531 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00335/0.3496, allocations: 2.847 MB / 0.5338 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.067e-05/0.3497, allocations: 36.02 kB / 0.5338 GB, free: 10.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.3497, allocations: 7.984 kB / 0.5338 GB, free: 10.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.3497, allocations: 7.969 kB / 0.5338 GB, free: 10.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01252/0.3622, allocations: 8.675 MB / 0.5423 GB, free: 1.523 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.3622, allocations: 8 kB / 0.5423 GB, free: 1.516 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005241/0.3627, allocations: 211.7 kB / 0.5425 GB, free: 1.309 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009647/0.3637, allocations: 0.5945 MB / 0.5431 GB, free: 0.707 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.3638, allocations: 39.98 kB / 0.5431 GB, free: 0.668 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00836/0.3722, allocations: 8.957 MB / 0.5519 GB, free: 7.379 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00499/0.3772, allocations: 5.666 MB / 0.5574 GB, free: 1.469 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004983/0.3821, allocations: 4.144 MB / 0.5615 GB, free: 13.26 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000876/0.383, allocations: 282.1 kB / 0.5617 GB, free: 12.98 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/0.3833, allocations: 39.42 kB / 0.5618 GB, free: 12.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006068/0.3839, allocations: 87.89 kB / 0.5619 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002795/0.3842, allocations: 140.9 kB / 0.562 GB, free: 12.72 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.159e-05/0.3842, allocations: 55.98 kB / 0.562 GB, free: 12.67 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002816/0.3871, allocations: 1.92 MB / 0.5639 GB, free: 10.74 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3871, allocations: 4.062 kB / 0.5639 GB, free: 10.74 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003204/0.3903, allocations: 0.8749 MB / 0.5648 GB, free: 9.863 MB / 474.7 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 {(4,16,68.8%), (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.005619/0.3959, allocations: 4.811 MB / 0.5695 GB, free: 4.977 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005309/0.4012, allocations: 3.999 MB / 0.5734 GB, free: 0.9609 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.4012, allocations: 0 / 0.5734 GB, free: 0.9609 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1488/0.55, allocations: 1.587 MB / 0.5749 GB, free: 159 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002074/0.5521, allocations: 450.8 kB / 0.5754 GB, free: 158.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04141/0.5935, allocations: 33.35 MB / 0.6079 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00221/0.5957, allocations: 2.277 MB / 0.6102 GB, free: 136.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002199/0.5979, allocations: 1.319 MB / 0.6114 GB, free: 135.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/0.5992, allocations: 1.469 MB / 0.6129 GB, free: 134.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.603e-06/0.5992, allocations: 0 / 0.6129 GB, free: 134.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07458/0.6738, allocations: 59.7 MB / 0.6712 GB, free: 75.05 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.986/10.66, allocations: 20.47 kB / 0.6712 GB, free: 75.04 MB / 474.7 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.569659817963839] Failed to read output from testmodel.py, exit status != 0: 10.796527992002666 10.809067582 10.621486324 Calling exit ...