Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001241/0.001241, allocations: 108.2 kB / 21.22 MB, free: 0.5859 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.0014/0.0014, allocations: 208.3 kB / 24.52 MB, free: 3.941 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.356/1.356, allocations: 230.6 MB / 258.3 MB, free: 7.992 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_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 47.94 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2359, allocations: 53.37 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002987/0.2388, allocations: 1.726 MB / 433.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006597/0.2395, allocations: 291.2 kB / 433.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.163e-05/0.2396, allocations: 3.938 kB / 433.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001233/0.2397, allocations: 27.73 kB / 433.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.664e-05/0.2398, allocations: 23.73 kB / 434 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003628/0.2401, allocations: 119.8 kB / 434.1 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003339/0.2405, allocations: 279.4 kB / 434.4 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002697/0.2408, allocations: 153.9 kB / 434.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.2409, allocations: 91.69 kB / 434.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.241, allocations: 107.5 kB / 434.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.438e-05/0.241, allocations: 27.94 kB / 434.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.903e-05/0.2411, allocations: 31.98 kB / 434.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.351e-05/0.2412, allocations: 55.84 kB / 434.8 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.2413, allocations: 103.5 kB / 434.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003083/0.2416, allocations: 255.3 kB / 435.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2416, allocations: 4 kB / 435.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2416, allocations: 0 / 435.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.2416, allocations: 0 / 435.2 MB, free: 3.578 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.0006392/0.2422, allocations: 429.1 kB / 435.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.2423, allocations: 8.031 kB / 435.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.924e-05/0.2423, allocations: 8.688 kB / 435.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.735e-05/0.2424, allocations: 54.73 kB / 435.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/0.2426, allocations: 44.77 kB / 435.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.2429, allocations: 174.2 kB / 435.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.2429, allocations: 24.88 kB / 435.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.872e-05/0.243, allocations: 24.38 kB / 435.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000454/0.2434, allocations: 273.5 kB / 436.2 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.2434, allocations: 4 kB / 436.2 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.2435, allocations: 12 kB / 436.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.2435, allocations: 8 kB / 436.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002941/0.2438, allocations: 165.6 kB / 436.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.2449, allocations: 0.921 MB / 437.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.2452, allocations: 159.2 kB / 437.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.2453, allocations: 69.64 kB / 437.5 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.2453, allocations: 11.94 kB / 437.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.2456, allocations: 130.7 kB / 437.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.2456, allocations: 0 / 437.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004293/0.246, allocations: 225 kB / 437.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.725e-05/0.2461, allocations: 85.11 kB / 438 MB, free: 0.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.2462, allocations: 157.8 kB / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.2462, allocations: 37.7 kB / 438.2 MB, free: 384 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.61e-05/0.2463, allocations: 140.7 kB / 438.3 MB, free: 236 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.822e-05/0.2464, allocations: 67.5 kB / 438.4 MB, free: 168 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.2465, allocations: 77.47 kB / 438.4 MB, free: 84 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.2467, allocations: 330.8 kB / 438.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.2468, allocations: 63.97 kB / 438.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.2469, allocations: 140.5 kB / 439 MB, free: 15.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002679/0.2472, allocations: 200.8 kB / 439.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2472, allocations: 0 / 439.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003858/0.2476, allocations: 257.4 kB / 439.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2476, allocations: 11.98 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.2476, allocations: 0 / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.2476, allocations: 4 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.2478, allocations: 35.86 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.118e-06/0.2478, allocations: 4 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.2479, allocations: 23.89 kB / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.2479, allocations: 8 kB / 439.5 MB, free: 14.95 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.0001543/0.2481, allocations: 173.8 kB / 439.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.2481, allocations: 11.91 kB / 439.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.682e-05/0.2481, allocations: 20.94 kB / 439.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2481, allocations: 4 kB / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2482, allocations: 3.984 kB / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.2482, allocations: 0 / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000724/0.2489, allocations: 0.5431 MB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2489, allocations: 0 / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.804e-05/0.249, allocations: 19.94 kB / 440.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.249, allocations: 0 / 440.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.249, allocations: 11.94 kB / 440.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.249, allocations: 3.984 kB / 440.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.249, allocations: 3.938 kB / 440.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003243/0.2493, allocations: 271 kB / 440.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.68e-05/0.2493, allocations: 15.89 kB / 440.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.2493, allocations: 15.92 kB / 440.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-05/0.2494, allocations: 4 kB / 440.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.056e-05/0.2495, allocations: 23.97 kB / 440.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.2495, allocations: 7.984 kB / 440.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.49e-05/0.2496, allocations: 102.8 kB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2496, allocations: 0 / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002954/0.2499, allocations: 55.84 kB / 440.8 MB, free: 13.59 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.0006473/0.2505, allocations: 0.8106 MB / 441.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.2508, allocations: 163.8 kB / 441.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2508, allocations: 0.5625 kB / 441.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.251, allocations: 85.94 kB / 441.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.2513, allocations: 27.91 kB / 441.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002384/0.2536, allocations: 2.059 MB / 443.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.254, allocations: 0.7326 MB / 444.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.433e-05/0.2541, allocations: 21.94 kB / 444.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.2542, allocations: 59.42 kB / 444.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2542, allocations: 0 / 444.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02217/0.2764, allocations: 3.776 MB / 448.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.69, allocations: 12.5 kB / 448.5 MB, free: 5.793 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.002992497989908] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 10.848417452012654 10.864593537 10.619842109 Calling exit ...