Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.411/1.411, allocations: 230.6 MB / 258.3 MB, free: 7.777 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 47.92 kB / 378.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2423, allocations: 53.36 MB / 431.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002693/0.245, allocations: 1.475 MB / 433.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006364/0.2456, allocations: 275.2 kB / 433.6 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.233e-05/0.2457, allocations: 4 kB / 433.6 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.2458, allocations: 27.67 kB / 433.6 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.778e-05/0.2459, allocations: 19.8 kB / 433.6 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.2463, allocations: 119.8 kB / 433.7 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003512/0.2466, allocations: 267.4 kB / 434 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002798/0.2469, allocations: 140.8 kB / 434.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.247, allocations: 87.7 kB / 434.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.2472, allocations: 95.59 kB / 434.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.2472, allocations: 27.94 kB / 434.4 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.261e-05/0.2473, allocations: 24 kB / 434.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.956e-05/0.2473, allocations: 63.77 kB / 434.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.557e-05/0.2474, allocations: 71.66 kB / 434.5 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.2477, allocations: 250.9 kB / 434.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.2477, allocations: 4 kB / 434.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2477, allocations: 0 / 434.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.2478, allocations: 0 / 434.8 MB, free: 3.719 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.0006224/0.2484, allocations: 413 kB / 435.2 MB, free: 3.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.2484, allocations: 12.03 kB / 435.2 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.526e-05/0.2484, allocations: 4.688 kB / 435.2 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.766e-05/0.2485, allocations: 54.73 kB / 435.2 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000241/0.2487, allocations: 40.81 kB / 435.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.249, allocations: 162.3 kB / 435.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.249, allocations: 28.81 kB / 435.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.2491, allocations: 24.38 kB / 435.5 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/0.2495, allocations: 239 kB / 435.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2495, allocations: 0 / 435.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.2495, allocations: 8 kB / 435.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.994e-06/0.2495, allocations: 11.94 kB / 435.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002909/0.2498, allocations: 157.6 kB / 435.9 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009466/0.2508, allocations: 0.6199 MB / 436.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002823/0.2511, allocations: 150.8 kB / 436.7 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.2512, allocations: 72.77 kB / 436.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.2512, allocations: 7.938 kB / 436.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001866/0.2514, allocations: 109 kB / 436.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.2514, allocations: 4 kB / 436.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004117/0.2518, allocations: 217 kB / 437.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.2519, allocations: 59.41 kB / 437.1 MB, free: 1.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.252, allocations: 150 kB / 437.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.252, allocations: 37.7 kB / 437.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.2521, allocations: 132.8 kB / 437.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.347e-05/0.2522, allocations: 67.52 kB / 437.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.2523, allocations: 74.02 kB / 437.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.2524, allocations: 326.8 kB / 437.9 MB, free: 400 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.2525, allocations: 60.62 kB / 437.9 MB, free: 340 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.2527, allocations: 128.1 kB / 438.1 MB, free: 188 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.2529, allocations: 179.2 kB / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.253, allocations: 3.938 kB / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003618/0.2533, allocations: 241.3 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2533, allocations: 4 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.2533, allocations: 4 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.2533, allocations: 4.156 kB / 438.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.2535, allocations: 39.92 kB / 438.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2535, allocations: 4 kB / 438.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.884e-05/0.2536, allocations: 27.78 kB / 438.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.2536, allocations: 8 kB / 438.6 MB, free: 15.64 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.0001453/0.2537, allocations: 161.7 kB / 438.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.946e-05/0.2538, allocations: 11.78 kB / 438.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.097e-05/0.2538, allocations: 20.94 kB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2538, allocations: 0 / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.2538, allocations: 3.984 kB / 438.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2538, allocations: 7.984 kB / 438.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006751/0.2545, allocations: 0.5014 MB / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2545, allocations: 0 / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.281e-05/0.2546, allocations: 19.92 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2546, allocations: 0 / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.2546, allocations: 4 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.2546, allocations: 4 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2546, allocations: 3.938 kB / 439.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.2549, allocations: 267.9 kB / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.754e-05/0.2549, allocations: 11.89 kB / 439.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/0.2549, allocations: 12 kB / 439.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.579e-05/0.255, allocations: 11.98 kB / 439.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.841e-05/0.2551, allocations: 27.84 kB / 439.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.2551, allocations: 4 kB / 439.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.723e-05/0.2552, allocations: 95.27 kB / 439.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2552, allocations: 0 / 439.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.2554, allocations: 51.84 kB / 439.8 MB, free: 14.36 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.0005973/0.256, allocations: 0.8009 MB / 440.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002969/0.2563, allocations: 163.9 kB / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2563, allocations: 0 / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000119/0.2565, allocations: 75.77 kB / 440.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.2567, allocations: 26.58 kB / 440.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.2588, allocations: 1.997 MB / 442.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.2589, allocations: 120.8 kB / 443 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.771e-05/0.259, allocations: 21.94 kB / 443 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.922e-05/0.2591, allocations: 55.42 kB / 443 MB, free: 10.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2591, allocations: 4 kB / 443 MB, free: 10.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02216/0.2813, allocations: 3.748 MB / 446.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.78, allocations: 18.52 kB / 446.8 MB, free: 7.34 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.12114811106585] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 10.948609129991382 10.962631202 10.712027831 Calling exit ...