Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001798/0.001798, allocations: 105 kB / 21.22 MB, free: 0.6758 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.002252/0.002252, allocations: 209.7 kB / 24.53 MB, free: 4.035 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.439/1.439, allocations: 230.6 MB / 258.3 MB, free: 8.051 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_Variant3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001972/0.001972, allocations: 68.75 kB / 378.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2598, allocations: 53.36 MB / 431.9 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002994/0.2628, allocations: 1.726 MB / 433.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006633/0.2635, allocations: 291.2 kB / 433.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.34e-05/0.2636, allocations: 7.938 kB / 433.9 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.2637, allocations: 31.67 kB / 433.9 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.08e-05/0.2638, allocations: 19.8 kB / 434 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003665/0.2641, allocations: 123.8 kB / 434.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003387/0.2645, allocations: 275.5 kB / 434.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002658/0.2647, allocations: 145.9 kB / 434.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.2648, allocations: 103.6 kB / 434.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.265, allocations: 99.53 kB / 434.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.728e-05/0.265, allocations: 24 kB / 434.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.203e-05/0.2651, allocations: 35.98 kB / 434.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.797e-05/0.2652, allocations: 59.77 kB / 434.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.2653, allocations: 103.5 kB / 434.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.2657, allocations: 255.7 kB / 435.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.2657, allocations: 3.938 kB / 435.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2657, allocations: 0 / 435.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.2657, allocations: 0 / 435.2 MB, free: 3.652 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006886/0.2664, allocations: 429.2 kB / 435.6 MB, free: 3.203 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.2664, allocations: 8.031 kB / 435.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.032e-05/0.2665, allocations: 58.73 kB / 435.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002597/0.2667, allocations: 40.77 kB / 435.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.267, allocations: 166.3 kB / 435.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.276e-05/0.2671, allocations: 24.88 kB / 435.9 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.2671, allocations: 32.38 kB / 435.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004697/0.2676, allocations: 269.7 kB / 436.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.2676, allocations: 3.938 kB / 436.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.2676, allocations: 8 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.2677, allocations: 8 kB / 436.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003134/0.268, allocations: 165.6 kB / 436.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.2691, allocations: 0.921 MB / 437.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003014/0.2694, allocations: 169.3 kB / 437.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.2696, allocations: 70.95 kB / 437.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.2696, allocations: 4 kB / 437.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.2698, allocations: 133.1 kB / 437.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.854e-06/0.2698, allocations: 0 / 437.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004577/0.2703, allocations: 225.3 kB / 437.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.663e-05/0.2704, allocations: 81.11 kB / 437.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.2705, allocations: 157.2 kB / 438.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.2705, allocations: 37.7 kB / 438.1 MB, free: 472 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.2707, allocations: 144.7 kB / 438.3 MB, free: 320 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.611e-05/0.2707, allocations: 63.52 kB / 438.3 MB, free: 256 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.2708, allocations: 81.47 kB / 438.4 MB, free: 168 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.271, allocations: 330.9 kB / 438.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.2711, allocations: 63.97 kB / 438.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.2713, allocations: 140.5 kB / 438.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.2716, allocations: 192.8 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.2716, allocations: 8 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003945/0.272, allocations: 245.3 kB / 439.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.272, allocations: 11.92 kB / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.272, allocations: 4 kB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.272, allocations: 4 kB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.2722, allocations: 35.86 kB / 439.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.2722, allocations: 4.281 kB / 439.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.2723, allocations: 27.84 kB / 439.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.2723, allocations: 16 kB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001598/0.2725, allocations: 169.6 kB / 439.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/0.2725, allocations: 15.91 kB / 439.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.454e-05/0.2725, allocations: 12.94 kB / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.2725, allocations: 4 kB / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2725, allocations: 3.984 kB / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2725, allocations: 0 / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007549/0.2733, allocations: 0.554 MB / 440.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2733, allocations: 3.938 kB / 440.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.653e-05/0.2734, allocations: 19.94 kB / 440.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.2734, allocations: 4 kB / 440.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.2734, allocations: 3.938 kB / 440.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.2734, allocations: 3.984 kB / 440.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.2734, allocations: 8 kB / 440.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003209/0.2737, allocations: 276.1 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.815e-05/0.2737, allocations: 7.953 kB / 440.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.2738, allocations: 15.92 kB / 440.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.324e-05/0.2739, allocations: 4 kB / 440.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/0.2739, allocations: 19.97 kB / 440.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.274, allocations: 11.98 kB / 440.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.981e-05/0.274, allocations: 91.27 kB / 440.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.274, allocations: 4 kB / 440.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.2743, allocations: 55.84 kB / 440.7 MB, free: 13.67 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006258/0.2749, allocations: 0.8134 MB / 441.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003237/0.2753, allocations: 167.9 kB / 441.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2753, allocations: 4 kB / 441.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.2754, allocations: 71.72 kB / 441.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.2757, allocations: 19.98 kB / 441.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/0.278, allocations: 2.059 MB / 443.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.2785, allocations: 0.7404 MB / 444.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.188e-05/0.2786, allocations: 21.94 kB / 444.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.2787, allocations: 59.42 kB / 444.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2787, allocations: 0 / 444.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/0.3043, allocations: 3.644 MB / 448.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.076/8.381, allocations: 10.98 kB / 448.3 MB, free: 5.969 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.685406137257814] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.452393487095833 8.476725427 8.20635045 Calling exit ...