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.001181/0.001181, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001317/0.001317, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.352/1.352, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.001448/0.001448, allocations: 47.92 kB / 378.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2436, allocations: 53.38 MB / 431.8 MB, free: 6.801 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002971/0.2465, allocations: 1.683 MB / 433.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006799/0.2472, allocations: 287.2 kB / 433.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.2473, allocations: 11.94 kB / 433.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.2475, allocations: 31.67 kB / 433.8 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.306e-05/0.2475, allocations: 15.81 kB / 433.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.2479, allocations: 131.8 kB / 434 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003471/0.2483, allocations: 267.5 kB / 434.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002989/0.2486, allocations: 172.1 kB / 434.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.2487, allocations: 83.72 kB / 434.5 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.2488, allocations: 107.6 kB / 434.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.673e-05/0.2489, allocations: 24 kB / 434.6 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.626e-05/0.249, allocations: 28 kB / 434.7 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.921e-05/0.249, allocations: 51.84 kB / 434.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.2491, allocations: 91.56 kB / 434.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003245/0.2495, allocations: 254.8 kB / 435 MB, free: 3.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2495, allocations: 0 / 435 MB, free: 3.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2495, allocations: 0 / 435 MB, free: 3.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.2495, allocations: 0 / 435 MB, free: 3.586 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.0006603/0.2501, allocations: 421.2 kB / 435.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.2502, allocations: 12.03 kB / 435.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.75e-05/0.2502, allocations: 8.688 kB / 435.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.138e-05/0.2502, allocations: 62.67 kB / 435.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000248/0.2505, allocations: 36.77 kB / 435.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.2508, allocations: 174.2 kB / 435.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.2508, allocations: 20.88 kB / 435.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.612e-05/0.2509, allocations: 32.31 kB / 435.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.2513, allocations: 269.5 kB / 436.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.2513, allocations: 3.938 kB / 436.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.2514, allocations: 12 kB / 436.1 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.2514, allocations: 8 kB / 436.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003031/0.2517, allocations: 165.6 kB / 436.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.2528, allocations: 0.8703 MB / 437.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.253, allocations: 156.7 kB / 437.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.2532, allocations: 73.72 kB / 437.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.2532, allocations: 4 kB / 437.3 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002226/0.2534, allocations: 134.7 kB / 437.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.744e-06/0.2534, allocations: 0 / 437.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004394/0.2538, allocations: 229 kB / 437.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.2539, allocations: 85.09 kB / 437.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.254, allocations: 161 kB / 437.9 MB, free: 492 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.2541, allocations: 33.7 kB / 438 MB, free: 452 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.2542, allocations: 140.7 kB / 438.1 MB, free: 304 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.983e-05/0.2542, allocations: 71.5 kB / 438.2 MB, free: 232 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.2543, allocations: 73.47 kB / 438.3 MB, free: 152 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2545, allocations: 330.8 kB / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.2546, allocations: 63.97 kB / 438.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.2548, allocations: 140.5 kB / 438.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002655/0.2551, allocations: 204.9 kB / 439 MB, free: 15.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2551, allocations: 0 / 439 MB, free: 15.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003782/0.2554, allocations: 253.3 kB / 439.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.2555, allocations: 8 kB / 439.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.2555, allocations: 0 / 439.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.2555, allocations: 11.92 kB / 439.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.2556, allocations: 43.91 kB / 439.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.2556, allocations: 4 kB / 439.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.475e-05/0.2557, allocations: 19.89 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.2557, allocations: 12.28 kB / 439.3 MB, free: 15 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.0001365/0.2559, allocations: 165.6 kB / 439.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.736e-05/0.2559, allocations: 15.91 kB / 439.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.339e-05/0.2559, allocations: 16.94 kB / 439.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.256, allocations: 4 kB / 439.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.256, allocations: 0 / 439.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.256, allocations: 3.984 kB / 439.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006892/0.2567, allocations: 0.5275 MB / 440.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2567, allocations: 3.938 kB / 440.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.965e-05/0.2567, allocations: 15.92 kB / 440.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2567, allocations: 8 kB / 440.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.2567, allocations: 7.938 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.2567, allocations: 4 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2567, allocations: 0 / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003113/0.2571, allocations: 280.1 kB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.448e-05/0.2571, allocations: 7.953 kB / 440.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/0.2571, allocations: 15.92 kB / 440.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.848e-05/0.2572, allocations: 4 kB / 440.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.2573, allocations: 19.97 kB / 440.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.2573, allocations: 8 kB / 440.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.833e-05/0.2573, allocations: 99.27 kB / 440.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2573, allocations: 0 / 440.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.2576, allocations: 55.83 kB / 440.6 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.0006127/0.2582, allocations: 0.8173 MB / 441.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003068/0.2585, allocations: 171.6 kB / 441.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2585, allocations: 0 / 441.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.2587, allocations: 68.48 kB / 441.6 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.0002778/0.2589, allocations: 30.56 kB / 441.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.2612, allocations: 2.069 MB / 443.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.2613, allocations: 121.6 kB / 443.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.506e-05/0.2614, allocations: 21.94 kB / 443.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.2615, allocations: 55.42 kB / 443.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2615, allocations: 0 / 443.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.284, allocations: 3.838 MB / 447.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.85, allocations: 64 / 447.8 MB, free: 6.449 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.103202869999222] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.009807170019485 11.025197155 10.772601479 Calling exit ...