Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 108.8 kB / 21.22 MB, free: 0.7422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00197/0.00197, allocations: 187.7 kB / 24.5 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 47.92 kB / 371.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2932, allocations: 52.18 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003201/0.2964, allocations: 1.721 MB / 425.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007545/0.2972, allocations: 291.2 kB / 425.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.821e-05/0.2973, allocations: 7.938 kB / 425.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.2974, allocations: 27.67 kB / 425.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.653e-05/0.2975, allocations: 23.8 kB / 425.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004323/0.2979, allocations: 123.8 kB / 425.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003643/0.2983, allocations: 271.5 kB / 425.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002813/0.2986, allocations: 146 kB / 426 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.2987, allocations: 99.64 kB / 426.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.2989, allocations: 95.59 kB / 426.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.602e-05/0.2989, allocations: 24 kB / 426.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.087e-05/0.299, allocations: 39.92 kB / 426.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.594e-05/0.299, allocations: 55.89 kB / 426.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.2992, allocations: 95.47 kB / 426.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.2995, allocations: 259.3 kB / 426.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2995, allocations: 0 / 426.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2995, allocations: 0 / 426.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.2995, allocations: 7.938 kB / 426.6 MB, free: 11.36 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.000679/0.3002, allocations: 425.2 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3002, allocations: 12.03 kB / 427.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.552e-05/0.3002, allocations: 8.625 kB / 427.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.081e-05/0.3003, allocations: 62.67 kB / 427.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.781e-05/0.3004, allocations: 24.8 kB / 427.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.3007, allocations: 178.3 kB / 427.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.3007, allocations: 20.88 kB / 427.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.386e-05/0.3007, allocations: 28.38 kB / 427.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004902/0.3012, allocations: 281.5 kB / 427.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3012, allocations: 0 / 427.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.3013, allocations: 8 kB / 427.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.3013, allocations: 8 kB / 427.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000329/0.3016, allocations: 165.6 kB / 427.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.3029, allocations: 0.9326 MB / 428.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.3032, allocations: 163.1 kB / 428.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.3033, allocations: 69.69 kB / 429 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.3033, allocations: 0 / 429 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.3035, allocations: 140.5 kB / 429.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.182e-06/0.3035, allocations: 4 kB / 429.1 MB, free: 8.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004607/0.304, allocations: 221.4 kB / 429.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.687e-05/0.3041, allocations: 89.09 kB / 429.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.3042, allocations: 152.8 kB / 429.6 MB, free: 8.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.93e-05/0.3043, allocations: 37.69 kB / 429.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3044, allocations: 140.8 kB / 429.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.866e-05/0.3044, allocations: 67.48 kB / 429.8 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.3045, allocations: 77.67 kB / 429.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3047, allocations: 334.9 kB / 430.2 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.3048, allocations: 59.97 kB / 430.3 MB, free: 7.465 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.305, allocations: 148.4 kB / 430.4 MB, free: 7.289 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.3053, allocations: 200.8 kB / 430.6 MB, free: 7.062 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.3053, allocations: 4 kB / 430.6 MB, free: 7.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003993/0.3057, allocations: 249.3 kB / 430.9 MB, free: 6.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3057, allocations: 4 kB / 430.9 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3057, allocations: 4 kB / 430.9 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.3058, allocations: 4 kB / 430.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.3059, allocations: 44.19 kB / 430.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.3059, allocations: 15.88 kB / 431 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.306, allocations: 23.84 kB / 431 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.16e-05/0.3061, allocations: 12 kB / 431 MB, free: 6.703 MB / 334.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.0001653/0.3062, allocations: 165.6 kB / 431.1 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.48e-05/0.3062, allocations: 11.91 kB / 431.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003559/0.3066, allocations: 198.4 kB / 431.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3066, allocations: 0 / 431.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3066, allocations: 8 kB / 431.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3066, allocations: 0 / 431.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007908/0.3074, allocations: 0.5665 MB / 431.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3074, allocations: 0 / 431.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.073e-05/0.3075, allocations: 12 kB / 431.9 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.3075, allocations: 3.938 kB / 431.9 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.3075, allocations: 11.98 kB / 432 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3075, allocations: 0 / 432 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3075, allocations: 0 / 432 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003772/0.3079, allocations: 300.3 kB / 432.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.073e-05/0.3079, allocations: 15.83 kB / 432.3 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.089e-05/0.3079, allocations: 8 kB / 432.3 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.453e-05/0.308, allocations: 7.984 kB / 432.3 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.066e-05/0.3081, allocations: 19.97 kB / 432.3 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.3081, allocations: 8 kB / 432.3 MB, free: 5.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.979e-05/0.3082, allocations: 99.27 kB / 432.4 MB, free: 5.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3082, allocations: 0 / 432.4 MB, free: 5.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000313/0.3085, allocations: 59.83 kB / 432.5 MB, free: 5.133 MB / 334.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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0007527/0.3093, allocations: 0.8183 MB / 433.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003848/0.3097, allocations: 183.7 kB / 433.5 MB, free: 4.105 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3097, allocations: 3.938 kB / 433.5 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.3098, allocations: 75.86 kB / 433.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.3101, allocations: 27.97 kB / 433.6 MB, free: 4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.3125, allocations: 2.072 MB / 435.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.3129, allocations: 0.744 MB / 436.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.151e-05/0.313, allocations: 25.89 kB / 436.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.3131, allocations: 63.41 kB / 436.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3131, allocations: 4 kB / 436.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.3375, allocations: 4.019 MB / 440.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.86, allocations: 12 kB / 440.5 MB, free: 13.04 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.172829939983785] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.01242215000093 11.028792356 10.725873222 Calling exit ...