Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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.001574/0.001574, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.00218/0.00218, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.475/1.475, allocations: 230.6 MB / 258.3 MB, free: 8.055 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,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",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.001983/0.001983, allocations: 68.77 kB / 378.5 MB, free: 3.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2662, allocations: 53.37 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002839/0.2691, allocations: 1.505 MB / 433.4 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006866/0.2698, allocations: 279.2 kB / 433.7 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.537e-05/0.2699, allocations: 7.938 kB / 433.7 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.27, allocations: 19.75 kB / 433.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.007e-05/0.27, allocations: 27.72 kB / 433.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003988/0.2704, allocations: 111.8 kB / 433.8 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003583/0.2708, allocations: 263.6 kB / 434.1 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002969/0.2711, allocations: 146.6 kB / 434.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.2712, allocations: 87.77 kB / 434.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.2714, allocations: 103.5 kB / 434.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.401e-05/0.2714, allocations: 23.94 kB / 434.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.927e-05/0.2715, allocations: 32 kB / 434.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.096e-05/0.2716, allocations: 55.88 kB / 434.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.2717, allocations: 91.53 kB / 434.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.272, allocations: 247.8 kB / 434.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.272, allocations: 8 kB / 434.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.272, allocations: 0 / 434.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.272, allocations: 0 / 434.9 MB, free: 3.93 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.0007686/0.2728, allocations: 405.1 kB / 435.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.2728, allocations: 8.031 kB / 435.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.713e-05/0.2729, allocations: 62.72 kB / 435.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002522/0.2732, allocations: 28.83 kB / 435.4 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.2735, allocations: 178.1 kB / 435.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.248e-05/0.2735, allocations: 28.88 kB / 435.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.806e-05/0.2736, allocations: 24.38 kB / 435.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004434/0.274, allocations: 243.2 kB / 435.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.274, allocations: 3.938 kB / 435.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.274, allocations: 8 kB / 435.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.2741, allocations: 4 kB / 435.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.2744, allocations: 157.6 kB / 436 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.2754, allocations: 0.6588 MB / 436.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.2757, allocations: 150.8 kB / 436.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.2758, allocations: 68.88 kB / 436.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.2758, allocations: 7.938 kB / 436.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.276, allocations: 115.4 kB / 437 MB, free: 1.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.854e-06/0.276, allocations: 0 / 437 MB, free: 1.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000426/0.2765, allocations: 221 kB / 437.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.2765, allocations: 59.39 kB / 437.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.2767, allocations: 150 kB / 437.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/0.2767, allocations: 37.69 kB / 437.4 MB, free: 1.176 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.2768, allocations: 132.8 kB / 437.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.765e-05/0.2769, allocations: 67.53 kB / 437.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.277, allocations: 74.02 kB / 437.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2771, allocations: 322.8 kB / 438 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.2773, allocations: 60.62 kB / 438.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.2774, allocations: 128.1 kB / 438.2 MB, free: 368 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.2777, allocations: 179.1 kB / 438.4 MB, free: 164 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2777, allocations: 4 kB / 438.4 MB, free: 160 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003855/0.2781, allocations: 245.3 kB / 438.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2781, allocations: 4 kB / 438.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.2781, allocations: 7.938 kB / 438.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.2781, allocations: 0 / 438.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.2782, allocations: 31.86 kB / 438.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.2783, allocations: 4 kB / 438.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.949e-05/0.2784, allocations: 39.98 kB / 438.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.2784, allocations: 8 kB / 438.7 MB, free: 15.82 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.0001577/0.2785, allocations: 165.6 kB / 438.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.2786, allocations: 11.94 kB / 438.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.2786, allocations: 20.94 kB / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.2786, allocations: 0 / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2786, allocations: 0 / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2786, allocations: 0 / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007881/0.2794, allocations: 0.5209 MB / 439.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2794, allocations: 0 / 439.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.184e-05/0.2795, allocations: 15.98 kB / 439.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.2795, allocations: 4 kB / 439.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.2795, allocations: 4 kB / 439.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2795, allocations: 0 / 439.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.2795, allocations: 4 kB / 439.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/0.2799, allocations: 275.8 kB / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.888e-05/0.2799, allocations: 11.89 kB / 439.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.613e-05/0.2799, allocations: 11.98 kB / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.116e-05/0.28, allocations: 4 kB / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/0.28, allocations: 27.89 kB / 439.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.2801, allocations: 8 kB / 439.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.269e-05/0.2801, allocations: 91.27 kB / 439.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2801, allocations: 0 / 439.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002752/0.2804, allocations: 51.84 kB / 439.9 MB, free: 14.52 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.0006282/0.281, allocations: 0.8048 MB / 440.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003094/0.2813, allocations: 163.8 kB / 440.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2813, allocations: 0 / 440.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.2815, allocations: 72.22 kB / 441 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.2817, allocations: 31.91 kB / 441 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.284, allocations: 1.986 MB / 443 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.2844, allocations: 0.7362 MB / 443.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.3e-05/0.2845, allocations: 21.89 kB / 443.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.2846, allocations: 55.42 kB / 443.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2846, allocations: 0 / 443.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.3116, allocations: 3.564 MB / 447.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.044/8.356, allocations: 15.2 kB / 447.4 MB, free: 7.008 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.696101136039943] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.429662466049194 8.453546992 8.176945197 Calling exit ...