Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001608/0.001608, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001985/0.001985, allocations: 206.2 kB / 24.51 MB, free: 3.945 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.504/1.504, allocations: 230.5 MB / 258.2 MB, free: 7.82 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,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002519/0.002519, allocations: 59.89 kB / 378.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3293, allocations: 53.41 MB / 431.9 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002975/0.3323, allocations: 1.467 MB / 433.4 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007614/0.333, allocations: 287.2 kB / 433.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.3332, allocations: 7.938 kB / 433.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.3333, allocations: 19.75 kB / 433.7 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.318e-05/0.3334, allocations: 15.8 kB / 433.7 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004433/0.3338, allocations: 119.8 kB / 433.8 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003594/0.3342, allocations: 263.5 kB / 434.1 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002929/0.3345, allocations: 140.8 kB / 434.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.3346, allocations: 91.7 kB / 434.3 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.3347, allocations: 103.5 kB / 434.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.499e-05/0.3348, allocations: 24 kB / 434.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.358e-05/0.3349, allocations: 24 kB / 434.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.27e-05/0.3349, allocations: 51.84 kB / 434.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.335, allocations: 75.64 kB / 434.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003657/0.3354, allocations: 246.9 kB / 434.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3354, allocations: 4 kB / 434.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3354, allocations: 0 / 434.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.3354, allocations: 0 / 434.8 MB, free: 3.578 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.0007803/0.3362, allocations: 409.1 kB / 435.2 MB, free: 3.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.3362, allocations: 16.02 kB / 435.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.441e-05/0.3363, allocations: 12.69 kB / 435.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.078e-05/0.3364, allocations: 54.73 kB / 435.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002659/0.3366, allocations: 28.83 kB / 435.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003542/0.337, allocations: 170.1 kB / 435.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.603e-05/0.337, allocations: 20.88 kB / 435.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.602e-05/0.3371, allocations: 28.38 kB / 435.5 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004682/0.3375, allocations: 239 kB / 435.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3375, allocations: 11.92 kB / 435.8 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.3376, allocations: 8 kB / 435.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.3376, allocations: 4 kB / 435.8 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003215/0.3379, allocations: 165.6 kB / 435.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.339, allocations: 0.6082 MB / 436.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.3393, allocations: 150.8 kB / 436.7 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.3394, allocations: 64.83 kB / 436.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.794e-05/0.3394, allocations: 7.938 kB / 436.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.3397, allocations: 111.4 kB / 436.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.734e-06/0.3397, allocations: 4 kB / 436.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004565/0.3401, allocations: 222 kB / 437.1 MB, free: 1.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.3402, allocations: 59.39 kB / 437.2 MB, free: 1.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.3403, allocations: 149.3 kB / 437.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.674e-05/0.3403, allocations: 37.7 kB / 437.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.3405, allocations: 132.8 kB / 437.5 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.617e-05/0.3405, allocations: 63.53 kB / 437.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.3406, allocations: 74.02 kB / 437.6 MB, free: 0.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3408, allocations: 322.8 kB / 437.9 MB, free: 264 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.3409, allocations: 64.62 kB / 438 MB, free: 200 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.3411, allocations: 132.1 kB / 438.1 MB, free: 44 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/0.3414, allocations: 182.6 kB / 438.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.3414, allocations: 3.938 kB / 438.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004003/0.3418, allocations: 241.4 kB / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.3418, allocations: 4 kB / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.3418, allocations: 4 kB / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.3418, allocations: 4 kB / 438.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.342, allocations: 27.92 kB / 438.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.342, allocations: 0 / 438.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.3421, allocations: 31.77 kB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.3421, allocations: 19.94 kB / 438.6 MB, free: 15.5 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.0001926/0.3423, allocations: 161.8 kB / 438.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.835e-05/0.3423, allocations: 15.95 kB / 438.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.039e-05/0.3424, allocations: 16.92 kB / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3424, allocations: 4 kB / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3424, allocations: 0 / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.3424, allocations: 0 / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008205/0.3432, allocations: 0.5132 MB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3432, allocations: 0 / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.744e-05/0.3433, allocations: 15.94 kB / 439.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.3433, allocations: 4 kB / 439.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.3433, allocations: 11.98 kB / 439.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3434, allocations: 4 kB / 439.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3434, allocations: 3.938 kB / 439.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003827/0.3437, allocations: 271.9 kB / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.731e-05/0.3438, allocations: 11.89 kB / 439.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.3438, allocations: 4 kB / 439.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.88e-05/0.3439, allocations: 7.984 kB / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.805e-05/0.344, allocations: 23.91 kB / 439.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.344, allocations: 11.98 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.521e-05/0.3441, allocations: 95.27 kB / 439.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3441, allocations: 0 / 439.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.3444, allocations: 55.84 kB / 439.8 MB, free: 14.21 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.0006866/0.3451, allocations: 0.7982 MB / 440.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003549/0.3454, allocations: 156.4 kB / 440.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3454, allocations: 0 / 440.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.3456, allocations: 79.62 kB / 440.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.3459, allocations: 23.92 kB / 440.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.3484, allocations: 1.992 MB / 442.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.3485, allocations: 112.5 kB / 443 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.709e-05/0.3486, allocations: 25.94 kB / 443 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.3488, allocations: 59.41 kB / 443.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3488, allocations: 0 / 443.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.3725, allocations: 3.747 MB / 446.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.2, allocations: 5.375 kB / 446.8 MB, free: 7.184 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.783896571956575] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.358668934903108 11.374097376 11.035447895 Calling exit ...