Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 108.8 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 191.8 kB / 24.5 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 43.92 kB / 371.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2568, allocations: 52.2 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003283/0.2601, allocations: 1.679 MB / 425.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007444/0.2609, allocations: 295.1 kB / 425.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.921e-05/0.261, allocations: 11.88 kB / 425.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.2611, allocations: 23.73 kB / 425.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.975e-05/0.2612, allocations: 23.73 kB / 425.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.2616, allocations: 127.8 kB / 425.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003761/0.262, allocations: 275.5 kB / 425.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002905/0.2622, allocations: 155.5 kB / 426 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.2624, allocations: 91.7 kB / 426.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.2625, allocations: 107.5 kB / 426.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.82e-05/0.2625, allocations: 24 kB / 426.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.404e-05/0.2626, allocations: 28 kB / 426.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.002e-05/0.2627, allocations: 63.77 kB / 426.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.2629, allocations: 107.5 kB / 426.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003544/0.2632, allocations: 263.7 kB / 426.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2632, allocations: 0 / 426.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2632, allocations: 0 / 426.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.2632, allocations: 0 / 426.6 MB, free: 11.35 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.0007667/0.264, allocations: 429.1 kB / 427.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.264, allocations: 12.03 kB / 427.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.764e-05/0.2641, allocations: 4.688 kB / 427.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.254e-05/0.2641, allocations: 62.73 kB / 427.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.405e-05/0.2642, allocations: 28.78 kB / 427.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.2645, allocations: 174.2 kB / 427.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/0.2646, allocations: 20.88 kB / 427.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.2646, allocations: 28.38 kB / 427.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004748/0.2651, allocations: 273.5 kB / 427.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.2651, allocations: 7.938 kB / 427.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.2651, allocations: 8 kB / 427.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.2651, allocations: 8 kB / 427.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000331/0.2655, allocations: 165.6 kB / 427.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.2667, allocations: 0.9366 MB / 428.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.267, allocations: 159.3 kB / 428.9 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.2671, allocations: 73.73 kB / 429 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.2672, allocations: 8 kB / 429 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/0.2674, allocations: 140.5 kB / 429.1 MB, free: 8.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.2674, allocations: 3.938 kB / 429.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004767/0.2679, allocations: 221.4 kB / 429.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.367e-05/0.268, allocations: 89.03 kB / 429.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.2681, allocations: 165.3 kB / 429.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.2682, allocations: 37.7 kB / 429.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.2683, allocations: 136.8 kB / 429.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.693e-05/0.2683, allocations: 67.52 kB / 429.8 MB, free: 7.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.2684, allocations: 73.69 kB / 429.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.2686, allocations: 334.8 kB / 430.2 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.2687, allocations: 63.97 kB / 430.3 MB, free: 7.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.2689, allocations: 140.5 kB / 430.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002692/0.2692, allocations: 192.8 kB / 430.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.2692, allocations: 4 kB / 430.6 MB, free: 7.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003973/0.2696, allocations: 265.3 kB / 430.9 MB, free: 6.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.2696, allocations: 4 kB / 430.9 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2696, allocations: 4 kB / 430.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.2696, allocations: 4 kB / 430.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2697, allocations: 27.92 kB / 430.9 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.2697, allocations: 4 kB / 430.9 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.2699, allocations: 43.77 kB / 431 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.2699, allocations: 8 kB / 431 MB, free: 6.684 MB / 334.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.0002182/0.2701, allocations: 169.9 kB / 431.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.73e-05/0.2701, allocations: 15.89 kB / 431.2 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003644/0.2705, allocations: 190.5 kB / 431.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2705, allocations: 4 kB / 431.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2705, allocations: 0 / 431.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2705, allocations: 0 / 431.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007778/0.2713, allocations: 0.5626 MB / 431.9 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2713, allocations: 4 kB / 431.9 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.462e-05/0.2714, allocations: 19.92 kB / 431.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.2714, allocations: 3.938 kB / 431.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.2714, allocations: 8 kB / 432 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.2714, allocations: 3.938 kB / 432 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.2714, allocations: 4 kB / 432 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003598/0.2717, allocations: 288.6 kB / 432.2 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.844e-05/0.2718, allocations: 27.78 kB / 432.3 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.872e-05/0.2718, allocations: 11.92 kB / 432.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.333e-05/0.2719, allocations: 4 kB / 432.3 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.459e-05/0.272, allocations: 19.97 kB / 432.3 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.272, allocations: 15.98 kB / 432.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.391e-05/0.2721, allocations: 91.27 kB / 432.4 MB, free: 5.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2721, allocations: 4 kB / 432.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003107/0.2724, allocations: 51.89 kB / 432.5 MB, free: 5.109 MB / 334.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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0007403/0.2731, allocations: 0.83 MB / 433.3 MB, free: 4.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003351/0.2734, allocations: 167.8 kB / 433.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2734, allocations: 0.5625 kB / 433.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.2736, allocations: 83.78 kB / 433.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.2739, allocations: 27.92 kB / 433.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.2763, allocations: 2.094 MB / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.2767, allocations: 0.7402 MB / 436.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.384e-05/0.2768, allocations: 17.95 kB / 436.4 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.2769, allocations: 67.41 kB / 436.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2769, allocations: 0 / 436.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.3007, allocations: 4.059 MB / 440.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.85, allocations: 11.98 kB / 440.6 MB, free: 12.96 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.088537022005767] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.006125208048616 11.021303895 10.754889939 Calling exit ...