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.00121/0.00121, allocations: 111.5 kB / 20.18 MB, free: 1.984 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.001334/0.001334, allocations: 210.6 kB / 23.44 MB, free: 5.094 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.372/1.372, allocations: 230.5 MB / 257 MB, free: 8.176 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.001943/0.001943, allocations: 68.03 kB / 377 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2457, allocations: 53.32 MB / 430.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002869/0.2486, allocations: 1.718 MB / 432 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006584/0.2492, allocations: 299.1 kB / 432.3 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.944e-05/0.2493, allocations: 4 kB / 432.3 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.2494, allocations: 31.67 kB / 432.3 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.393e-05/0.2495, allocations: 15.8 kB / 432.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.2499, allocations: 119.8 kB / 432.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003181/0.2502, allocations: 267.6 kB / 432.7 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002657/0.2504, allocations: 153.5 kB / 432.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.2505, allocations: 91.69 kB / 433 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.2507, allocations: 99.55 kB / 433.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.257e-05/0.2507, allocations: 24 kB / 433.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.198e-05/0.2508, allocations: 35.97 kB / 433.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.978e-05/0.2509, allocations: 51.84 kB / 433.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.251, allocations: 103.5 kB / 433.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003062/0.2513, allocations: 259.2 kB / 433.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2513, allocations: 0 / 433.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2513, allocations: 0 / 433.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.2513, allocations: 0 / 433.5 MB, free: 4.121 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.0006826/0.252, allocations: 0.4945 MB / 434 MB, free: 3.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.252, allocations: 8.031 kB / 434 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.129e-05/0.2521, allocations: 58.73 kB / 434.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002438/0.2523, allocations: 40.77 kB / 434.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/0.2526, allocations: 224.1 kB / 434.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.596e-05/0.2526, allocations: 24.92 kB / 434.4 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.661e-05/0.2527, allocations: 32.31 kB / 434.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000443/0.2531, allocations: 274.6 kB / 434.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2531, allocations: 3.938 kB / 434.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.2532, allocations: 8 kB / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.2532, allocations: 8 kB / 434.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.2535, allocations: 161.6 kB / 434.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.2546, allocations: 0.9596 MB / 435.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.2549, allocations: 161.4 kB / 436 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001179/0.255, allocations: 77.62 kB / 436.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.2551, allocations: 4 kB / 436.1 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.2553, allocations: 127.9 kB / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.213e-06/0.2553, allocations: 0 / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004452/0.2557, allocations: 229.3 kB / 436.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.2558, allocations: 85.09 kB / 436.5 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.256, allocations: 157.7 kB / 436.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.256, allocations: 41.64 kB / 436.7 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.2561, allocations: 140.7 kB / 436.8 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.335e-05/0.2562, allocations: 67.52 kB / 436.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.2563, allocations: 77.47 kB / 437 MB, free: 436 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.2565, allocations: 334.9 kB / 437.3 MB, free: 92 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2566, allocations: 67.92 kB / 437.4 MB, free: 24 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.2568, allocations: 132.5 kB / 437.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/0.2571, allocations: 196.3 kB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2571, allocations: 4 kB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003816/0.2575, allocations: 245.3 kB / 437.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.2575, allocations: 8 kB / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2575, allocations: 3.938 kB / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.2575, allocations: 4 kB / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.2576, allocations: 35.92 kB / 438 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2576, allocations: 8.281 kB / 438 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.2577, allocations: 27.83 kB / 438 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.2578, allocations: 12 kB / 438 MB, free: 15.29 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.000163/0.2579, allocations: 161.7 kB / 438.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.2579, allocations: 11.91 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.571e-05/0.258, allocations: 20.83 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.258, allocations: 4 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.258, allocations: 0 / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.258, allocations: 4 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007681/0.2588, allocations: 0.5825 MB / 438.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2588, allocations: 0 / 438.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.812e-05/0.2589, allocations: 19.92 kB / 438.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2589, allocations: 3.984 kB / 438.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.2589, allocations: 11.94 kB / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2589, allocations: 0 / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.2589, allocations: 0 / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.2592, allocations: 280.1 kB / 439.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.1e-05/0.2593, allocations: 89.06 kB / 439.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.2593, allocations: 11.94 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.098e-05/0.2594, allocations: 15.92 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.2594, allocations: 11.98 kB / 439.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.2595, allocations: 15.98 kB / 439.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.742e-05/0.2595, allocations: 91.27 kB / 439.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2595, allocations: 4 kB / 439.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.2598, allocations: 55.84 kB / 439.4 MB, free: 13.8 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.0006504/0.2605, allocations: 0.8138 MB / 440.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003236/0.2608, allocations: 180 kB / 440.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2608, allocations: 0 / 440.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.2609, allocations: 71.77 kB / 440.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.2612, allocations: 16 kB / 440.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.2635, allocations: 2.063 MB / 442.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.2639, allocations: 0.7326 MB / 443.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.492e-05/0.264, allocations: 21.94 kB / 443.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.2641, allocations: 63.42 kB / 443.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2641, allocations: 0 / 443.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.2886, allocations: 3.495 MB / 446.8 MB, free: 6.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.684/7.973, allocations: 6.984 kB / 446.9 MB, free: 6.23 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.14609383000061] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.040158875985071 8.054707076 7.800592361 Calling exit ...