Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.002315/0.002315, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.002548/0.002548, allocations: 207.6 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.5 MB / 258.2 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 63.89 kB / 378.5 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2569, allocations: 53.41 MB / 431.9 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002923/0.2599, allocations: 1.722 MB / 433.7 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006773/0.2605, allocations: 303.1 kB / 434 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.2606, allocations: 3.938 kB / 434 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.2608, allocations: 27.67 kB / 434 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.755e-05/0.2608, allocations: 19.8 kB / 434 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003669/0.2612, allocations: 119.8 kB / 434.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.2616, allocations: 279.5 kB / 434.4 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002806/0.2618, allocations: 157.9 kB / 434.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.262, allocations: 91.64 kB / 434.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.2621, allocations: 103.5 kB / 434.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.803e-05/0.2621, allocations: 24 kB / 434.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.385e-05/0.2622, allocations: 31.98 kB / 434.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.209e-05/0.2623, allocations: 51.84 kB / 434.9 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.2624, allocations: 103.5 kB / 435 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003095/0.2627, allocations: 259.7 kB / 435.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2627, allocations: 0 / 435.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2627, allocations: 0 / 435.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.2627, allocations: 4 kB / 435.2 MB, free: 3.418 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.0006573/0.2633, allocations: 421.2 kB / 435.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2634, allocations: 8.031 kB / 435.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.773e-05/0.2634, allocations: 4.688 kB / 435.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.93e-05/0.2635, allocations: 66.72 kB / 435.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.2637, allocations: 28.78 kB / 435.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.264, allocations: 170.3 kB / 435.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.264, allocations: 20.88 kB / 435.9 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.296e-05/0.264, allocations: 40.25 kB / 436 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004486/0.2645, allocations: 265.5 kB / 436.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2645, allocations: 4 kB / 436.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.2645, allocations: 8 kB / 436.2 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.2645, allocations: 8 kB / 436.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/0.2648, allocations: 165.6 kB / 436.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.266, allocations: 0.921 MB / 437.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.2663, allocations: 165.4 kB / 437.5 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.2664, allocations: 73.02 kB / 437.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.2664, allocations: 7.984 kB / 437.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.2666, allocations: 140.1 kB / 437.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.2666, allocations: 0 / 437.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004406/0.2671, allocations: 217.3 kB / 437.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.2671, allocations: 85.11 kB / 438 MB, free: 444 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.2673, allocations: 161 kB / 438.1 MB, free: 276 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.2673, allocations: 37.7 kB / 438.2 MB, free: 232 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.2674, allocations: 140.7 kB / 438.3 MB, free: 84 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.935e-05/0.2675, allocations: 67.64 kB / 438.4 MB, free: 16 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.2676, allocations: 81.55 kB / 438.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2678, allocations: 330.8 kB / 438.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.2679, allocations: 63.97 kB / 438.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.2681, allocations: 136.5 kB / 439 MB, free: 15.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.2683, allocations: 204.3 kB / 439.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2683, allocations: 0 / 439.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003867/0.2687, allocations: 245.3 kB / 439.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.2687, allocations: 8 kB / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.2687, allocations: 288 / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2687, allocations: 11.94 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.2689, allocations: 35.92 kB / 439.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.2689, allocations: 4 kB / 439.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.269, allocations: 23.84 kB / 439.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.269, allocations: 12 kB / 439.5 MB, free: 14.8 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.0001622/0.2692, allocations: 165.6 kB / 439.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.58e-05/0.2692, allocations: 15.91 kB / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.597e-05/0.2692, allocations: 20.92 kB / 439.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.2693, allocations: 4 kB / 439.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2693, allocations: 0 / 439.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2693, allocations: 3.938 kB / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007408/0.27, allocations: 0.5515 MB / 440.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.27, allocations: 3.984 kB / 440.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.448e-05/0.2701, allocations: 19.94 kB / 440.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2701, allocations: 0 / 440.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.2701, allocations: 11.92 kB / 440.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2701, allocations: 0 / 440.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2701, allocations: 4 kB / 440.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003381/0.2704, allocations: 276.1 kB / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.844e-05/0.2705, allocations: 11.94 kB / 440.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.2705, allocations: 7.938 kB / 440.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.2706, allocations: 8 kB / 440.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/0.2707, allocations: 23.95 kB / 440.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.2707, allocations: 15.94 kB / 440.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.145e-05/0.2708, allocations: 91.27 kB / 440.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2708, allocations: 0 / 440.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.2711, allocations: 55.84 kB / 440.8 MB, free: 13.44 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.000755/0.2718, allocations: 0.8106 MB / 441.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003399/0.2722, allocations: 172.3 kB / 441.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2722, allocations: 0 / 441.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.2723, allocations: 79.62 kB / 441.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.2726, allocations: 19.94 kB / 441.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.2751, allocations: 2.056 MB / 443.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.2755, allocations: 0.7365 MB / 444.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.71e-05/0.2756, allocations: 25.94 kB / 444.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.2757, allocations: 55.42 kB / 444.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2757, allocations: 0 / 444.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.2983, allocations: 3.777 MB / 448.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.21, allocations: 12.05 kB / 448.5 MB, free: 5.621 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.744947179045994] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.403800518019125 11.420384246 11.154251507 Calling exit ...