Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001556/0.001556, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001874/0.001874, allocations: 216.2 kB / 24.53 MB, free: 4.066 MB / 14.72 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 1.414/1.414, allocations: 230.6 MB / 258.3 MB, free: 8 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+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(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 43.92 kB / 378.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2362, allocations: 53.36 MB / 431.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002558/0.2387, allocations: 1.51 MB / 433.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006119/0.2394, allocations: 283.2 kB / 433.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.51e-05/0.2394, allocations: 7.875 kB / 433.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.2396, allocations: 23.73 kB / 433.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.115e-05/0.2396, allocations: 27.8 kB / 433.7 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.24, allocations: 115.8 kB / 433.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003141/0.2403, allocations: 263.6 kB / 434.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.2405, allocations: 138.6 kB / 434.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.2406, allocations: 91.75 kB / 434.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.2408, allocations: 91.55 kB / 434.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.165e-05/0.2408, allocations: 24 kB / 434.4 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.913e-05/0.2409, allocations: 35.98 kB / 434.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.633e-05/0.2409, allocations: 51.89 kB / 434.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.63e-05/0.241, allocations: 95.53 kB / 434.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.2413, allocations: 247.8 kB / 434.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2414, allocations: 0 / 434.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2414, allocations: 0 / 434.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2414, allocations: 4 kB / 434.9 MB, free: 3.852 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.0006229/0.242, allocations: 413 kB / 435.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.242, allocations: 8.031 kB / 435.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.723e-05/0.242, allocations: 16.62 kB / 435.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.597e-05/0.2421, allocations: 58.73 kB / 435.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002375/0.2423, allocations: 32.81 kB / 435.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.2426, allocations: 170.2 kB / 435.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.2426, allocations: 16.88 kB / 435.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.86e-05/0.2427, allocations: 28.38 kB / 435.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004104/0.2431, allocations: 242.9 kB / 435.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.2431, allocations: 0 / 435.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.2431, allocations: 12 kB / 435.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.2431, allocations: 4 kB / 435.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002922/0.2434, allocations: 153.7 kB / 436 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009541/0.2444, allocations: 0.6588 MB / 436.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/0.2447, allocations: 158.8 kB / 436.8 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.2448, allocations: 75.27 kB / 436.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.2448, allocations: 3.938 kB / 436.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002032/0.245, allocations: 111.3 kB / 437 MB, free: 1.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.245, allocations: 0 / 437 MB, free: 1.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004206/0.2454, allocations: 224.8 kB / 437.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.2455, allocations: 59.41 kB / 437.3 MB, free: 1.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.2456, allocations: 152.3 kB / 437.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.2456, allocations: 33.7 kB / 437.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.2457, allocations: 136.8 kB / 437.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.2458, allocations: 63.52 kB / 437.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.2459, allocations: 74.02 kB / 437.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.246, allocations: 322.8 kB / 438 MB, free: 492 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.2462, allocations: 64.62 kB / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.2463, allocations: 136 kB / 438.2 MB, free: 268 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.2466, allocations: 171.2 kB / 438.4 MB, free: 72 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/0.2466, allocations: 15.88 kB / 438.4 MB, free: 56 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003767/0.247, allocations: 237.3 kB / 438.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.247, allocations: 6.719 kB / 438.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.247, allocations: 8 kB / 438.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.247, allocations: 4 kB / 438.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.2471, allocations: 27.92 kB / 438.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.2471, allocations: 3.938 kB / 438.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.765e-05/0.2472, allocations: 31.78 kB / 438.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.2472, allocations: 12 kB / 438.7 MB, free: 15.73 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.0001519/0.2474, allocations: 157.7 kB / 438.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/0.2474, allocations: 7.953 kB / 438.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.691e-05/0.2475, allocations: 20.94 kB / 438.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.2475, allocations: 0 / 438.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.2475, allocations: 4 kB / 438.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.2475, allocations: 3.984 kB / 438.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006915/0.2482, allocations: 0.5209 MB / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2482, allocations: 0 / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.289e-05/0.2483, allocations: 15.98 kB / 439.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2483, allocations: 4 kB / 439.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.2483, allocations: 4 kB / 439.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2483, allocations: 7.938 kB / 439.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.2483, allocations: 7.938 kB / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.2486, allocations: 266.8 kB / 439.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.77e-05/0.2486, allocations: 15.89 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.2486, allocations: 4 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.441e-05/0.2487, allocations: 7.984 kB / 439.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.945e-05/0.2488, allocations: 23.91 kB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.2488, allocations: 12 kB / 439.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.365e-05/0.2489, allocations: 95.27 kB / 439.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2489, allocations: 0 / 439.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002769/0.2491, allocations: 51.84 kB / 440 MB, free: 14.43 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.0005841/0.2497, allocations: 0.7981 MB / 440.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.25, allocations: 159.8 kB / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.25, allocations: 4 kB / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.2501, allocations: 81.94 kB / 441 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.2504, allocations: 25.62 kB / 441 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/0.2528, allocations: 1.992 MB / 443 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.2531, allocations: 0.7323 MB / 443.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.147e-05/0.2532, allocations: 25.94 kB / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.2533, allocations: 55.42 kB / 443.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2533, allocations: 0 / 443.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.277, allocations: 3.694 MB / 447.5 MB, free: 6.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.69, allocations: 12.86 kB / 447.5 MB, free: 6.836 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.06027062702924] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 10.861306166043505 10.885435597 10.639483898 Calling exit ...