Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001843/0.001843, 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.002191/0.002191, allocations: 207.4 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.702/1.702, allocations: 230.5 MB / 258.2 MB, free: 8.012 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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 63.91 kB / 378.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2681, allocations: 53.41 MB / 431.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003029/0.2711, allocations: 1.694 MB / 433.6 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006554/0.2718, allocations: 291.2 kB / 433.9 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.768e-05/0.2719, allocations: 7.938 kB / 433.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.272, allocations: 31.67 kB / 434 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.533e-05/0.2721, allocations: 19.8 kB / 434 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.2724, allocations: 119.8 kB / 434.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.2728, allocations: 283.5 kB / 434.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/0.273, allocations: 155.5 kB / 434.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.2732, allocations: 99.69 kB / 434.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.2733, allocations: 99.48 kB / 434.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.643e-05/0.2733, allocations: 24 kB / 434.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.43e-05/0.2734, allocations: 28 kB / 434.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.879e-05/0.2735, allocations: 67.75 kB / 434.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.2736, allocations: 103.5 kB / 434.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.2739, allocations: 263.7 kB / 435.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2739, allocations: 0 / 435.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2739, allocations: 0 / 435.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.2739, allocations: 0 / 435.2 MB, free: 3.422 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.0006567/0.2746, allocations: 417.2 kB / 435.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.2746, allocations: 16.02 kB / 435.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.335e-05/0.2746, allocations: 8.688 kB / 435.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.725e-05/0.2747, allocations: 58.67 kB / 435.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.2749, allocations: 36.78 kB / 435.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.2752, allocations: 170.3 kB / 435.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.2752, allocations: 24.88 kB / 435.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.959e-05/0.2753, allocations: 28.38 kB / 435.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000451/0.2757, allocations: 273.5 kB / 436.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.2757, allocations: 0 / 436.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.2758, allocations: 19.98 kB / 436.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.2758, allocations: 8 kB / 436.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.2761, allocations: 165.5 kB / 436.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.2772, allocations: 0.9249 MB / 437.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.2775, allocations: 153.4 kB / 437.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.2776, allocations: 73.06 kB / 437.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.2776, allocations: 4 kB / 437.5 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002228/0.2778, allocations: 144 kB / 437.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.2778, allocations: 0 / 437.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004281/0.2783, allocations: 221.3 kB / 437.9 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.2783, allocations: 81.11 kB / 438 MB, free: 440 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.2784, allocations: 157 kB / 438.1 MB, free: 276 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.2785, allocations: 37.83 kB / 438.2 MB, free: 232 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.2786, allocations: 152.7 kB / 438.3 MB, free: 72 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.031e-05/0.2786, allocations: 55.59 kB / 438.4 MB, free: 16 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.2787, allocations: 81.72 kB / 438.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.2789, allocations: 330.8 kB / 438.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.279, allocations: 63.75 kB / 438.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.2792, allocations: 148.4 kB / 439 MB, free: 15.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.2795, allocations: 200.3 kB / 439.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2795, allocations: 0 / 439.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004024/0.2799, allocations: 249.6 kB / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2799, allocations: 4 kB / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.2799, allocations: 4 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.2799, allocations: 4 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.2801, allocations: 35.92 kB / 439.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.2801, allocations: 7.938 kB / 439.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.2802, allocations: 31.77 kB / 439.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.2802, allocations: 12 kB / 439.5 MB, free: 14.78 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.0001718/0.2804, allocations: 165.8 kB / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.818e-05/0.2804, allocations: 11.94 kB / 439.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.766e-05/0.2805, allocations: 20.88 kB / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2805, allocations: 4 kB / 439.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.2805, allocations: 0 / 439.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.2805, allocations: 0 / 439.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007462/0.2812, allocations: 0.5514 MB / 440.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2812, allocations: 0 / 440.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.641e-05/0.2813, allocations: 23.92 kB / 440.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2813, allocations: 4 kB / 440.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.2813, allocations: 7.938 kB / 440.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.2813, allocations: 4 kB / 440.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2813, allocations: 0 / 440.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003205/0.2817, allocations: 272.1 kB / 440.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.08e-05/0.2817, allocations: 19.84 kB / 440.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.2817, allocations: 7.938 kB / 440.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.975e-05/0.2818, allocations: 15.98 kB / 440.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.007e-05/0.2819, allocations: 23.91 kB / 440.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.2819, allocations: 4 kB / 440.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.635e-05/0.282, allocations: 99.27 kB / 440.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.282, allocations: 0 / 440.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003/0.2823, allocations: 51.89 kB / 440.8 MB, free: 13.43 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,step.active,transition1.enableFire,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.0006316/0.2829, allocations: 0.8106 MB / 441.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003208/0.2832, allocations: 168.4 kB / 441.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2832, allocations: 0 / 441.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.2834, allocations: 84.12 kB / 441.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.2837, allocations: 30.48 kB / 441.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.286, allocations: 2.063 MB / 443.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.2863, allocations: 0.7326 MB / 444.7 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.929e-05/0.2864, allocations: 25.94 kB / 444.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.2865, allocations: 55.42 kB / 444.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of SimCode: time 1.202e-06/0.2865, allocations: 0 / 444.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.3093, allocations: 3.821 MB / 448.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.16, allocations: 11.55 kB / 448.6 MB, free: 5.559 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.901931058964692] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.327430645993445 11.342359506 11.06525766 Calling exit ...