Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001743/0.001743, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00217/0.00217, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.378/1.378, allocations: 230.6 MB / 258.3 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 68.77 kB / 378.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2578, allocations: 53.37 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002719/0.2605, allocations: 1.506 MB / 433.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007013/0.2612, allocations: 279.2 kB / 433.7 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.659e-05/0.2613, allocations: 3.938 kB / 433.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.2615, allocations: 23.73 kB / 433.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.556e-05/0.2615, allocations: 19.81 kB / 433.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003869/0.2619, allocations: 123.8 kB / 433.8 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003383/0.2622, allocations: 267.5 kB / 434.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002683/0.2625, allocations: 142.6 kB / 434.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.2626, allocations: 87.72 kB / 434.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.2628, allocations: 91.59 kB / 434.4 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.791e-05/0.2628, allocations: 24 kB / 434.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.642e-05/0.2629, allocations: 35.98 kB / 434.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.582e-05/0.2629, allocations: 55.84 kB / 434.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.2631, allocations: 95.52 kB / 434.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.2634, allocations: 247.8 kB / 434.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2634, allocations: 0 / 434.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2634, allocations: 4 kB / 434.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.2634, allocations: 0 / 434.9 MB, free: 3.91 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006678/0.2641, allocations: 409 kB / 435.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.2641, allocations: 11.97 kB / 435.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.43e-05/0.2642, allocations: 58.73 kB / 435.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002365/0.2644, allocations: 40.81 kB / 435.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.2647, allocations: 166.3 kB / 435.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/0.2648, allocations: 20.88 kB / 435.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.2648, allocations: 24.38 kB / 435.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.2652, allocations: 239.2 kB / 435.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.2652, allocations: 7.875 kB / 435.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.2653, allocations: 4 kB / 435.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.2653, allocations: 8 kB / 435.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000288/0.2656, allocations: 161.7 kB / 436 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009663/0.2665, allocations: 0.6588 MB / 436.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.2668, allocations: 159 kB / 436.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.2669, allocations: 72.83 kB / 436.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.267, allocations: 11.92 kB / 436.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.2672, allocations: 111.3 kB / 437 MB, free: 1.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.2672, allocations: 0 / 437 MB, free: 1.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004302/0.2676, allocations: 217.9 kB / 437.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.2677, allocations: 55.41 kB / 437.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.2678, allocations: 154 kB / 437.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.2678, allocations: 37.7 kB / 437.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.944e-05/0.2679, allocations: 132.8 kB / 437.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.703e-05/0.268, allocations: 63.53 kB / 437.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.952e-05/0.2681, allocations: 77.95 kB / 437.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.2682, allocations: 322.8 kB / 438 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.2683, allocations: 60.62 kB / 438.1 MB, free: 496 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.2685, allocations: 136 kB / 438.2 MB, free: 336 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.2688, allocations: 175.2 kB / 438.4 MB, free: 136 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2688, allocations: 0 / 438.4 MB, free: 136 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003764/0.2692, allocations: 245.3 kB / 438.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2692, allocations: 4 kB / 438.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2692, allocations: 0 / 438.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.2692, allocations: 7.984 kB / 438.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.2693, allocations: 32.14 kB / 438.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.2693, allocations: 7.938 kB / 438.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.356e-05/0.2694, allocations: 31.78 kB / 438.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.2694, allocations: 8 kB / 438.7 MB, free: 15.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001595/0.2696, allocations: 165.6 kB / 438.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.9e-05/0.2696, allocations: 7.953 kB / 438.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.712e-05/0.2697, allocations: 12.94 kB / 438.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.2697, allocations: 7.984 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2697, allocations: 4 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2697, allocations: 0 / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007014/0.2704, allocations: 0.5248 MB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2704, allocations: 0 / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.994e-05/0.2705, allocations: 12 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2705, allocations: 0 / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.2705, allocations: 8 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.2705, allocations: 7.938 kB / 439.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.2705, allocations: 3.984 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.2708, allocations: 271.9 kB / 439.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.657e-05/0.2708, allocations: 11.89 kB / 439.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.2708, allocations: 8 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.274e-05/0.2709, allocations: 11.92 kB / 439.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.271, allocations: 23.91 kB / 439.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.271, allocations: 8 kB / 439.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.64e-05/0.2711, allocations: 94.02 kB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2711, allocations: 4 kB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.2713, allocations: 51.84 kB / 439.9 MB, free: 14.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006262/0.272, allocations: 0.8048 MB / 440.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003202/0.2723, allocations: 160.2 kB / 440.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2723, allocations: 4.062 kB / 440.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.2724, allocations: 79.7 kB / 441 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.2727, allocations: 31.91 kB / 441 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.2749, allocations: 1.978 MB / 443 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.2754, allocations: 0.7361 MB / 443.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.916e-05/0.2754, allocations: 21.94 kB / 443.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.954e-05/0.2755, allocations: 59.42 kB / 443.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2755, allocations: 0 / 443.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02539/0.3009, allocations: 3.554 MB / 447.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.633/7.934, allocations: 11.55 kB / 447.4 MB, free: 6.988 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00109737 Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.2411525612697] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.001698242034763 8.015727917 7.749441375 Calling exit ...