Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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.001233/0.001233, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001286/0.001286, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.385/1.385, allocations: 225.6 MB / 253.3 MB, free: 13.01 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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 51.92 kB / 371.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2394, allocations: 52.18 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002638/0.242, allocations: 1.493 MB / 424.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006351/0.2427, allocations: 279.2 kB / 425.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.081e-05/0.2428, allocations: 11.94 kB / 425.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.2429, allocations: 23.73 kB / 425.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.437e-05/0.2429, allocations: 15.81 kB / 425.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003853/0.2433, allocations: 119.8 kB / 425.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003327/0.2436, allocations: 259.6 kB / 425.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.2439, allocations: 146.6 kB / 425.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.244, allocations: 87.7 kB / 425.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.2442, allocations: 95.59 kB / 425.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.677e-05/0.2442, allocations: 28 kB / 425.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.731e-05/0.2443, allocations: 31.94 kB / 426 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.729e-05/0.2444, allocations: 59.88 kB / 426 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.2445, allocations: 91.53 kB / 426.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.2448, allocations: 247.8 kB / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2448, allocations: 0 / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2448, allocations: 0 / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.2448, allocations: 0 / 426.3 MB, free: 11.65 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.0006539/0.2454, allocations: 413.1 kB / 426.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.2455, allocations: 8.031 kB / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.923e-05/0.2455, allocations: 4.688 kB / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.345e-05/0.2456, allocations: 62.72 kB / 426.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.37e-05/0.2456, allocations: 28.73 kB / 426.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.2459, allocations: 174.2 kB / 427 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.2459, allocations: 20.88 kB / 427 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.529e-05/0.246, allocations: 28.31 kB / 427.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004281/0.2464, allocations: 251 kB / 427.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.2464, allocations: 0 / 427.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.2464, allocations: 4 kB / 427.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.2465, allocations: 8 kB / 427.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.2468, allocations: 161.6 kB / 427.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.2478, allocations: 0.6628 MB / 428.1 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.2481, allocations: 160.5 kB / 428.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.2482, allocations: 64.83 kB / 428.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.2482, allocations: 7.938 kB / 428.4 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002039/0.2484, allocations: 114.8 kB / 428.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.2484, allocations: 4 kB / 428.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004209/0.2488, allocations: 221.4 kB / 428.7 MB, free: 9.137 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.2489, allocations: 55.41 kB / 428.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.249, allocations: 146 kB / 428.9 MB, free: 8.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.2491, allocations: 37.7 kB / 428.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.354e-05/0.2491, allocations: 136.8 kB / 429.1 MB, free: 8.734 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.286e-05/0.2492, allocations: 63.58 kB / 429.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.2493, allocations: 73.97 kB / 429.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2495, allocations: 330.8 kB / 429.5 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.2496, allocations: 60.62 kB / 429.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.2498, allocations: 132.1 kB / 429.7 MB, free: 8.047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/0.25, allocations: 171.3 kB / 429.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.25, allocations: 3.938 kB / 429.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003792/0.2504, allocations: 249.4 kB / 430.1 MB, free: 7.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2504, allocations: 4 kB / 430.1 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2504, allocations: 4 kB / 430.1 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.2504, allocations: 4 kB / 430.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.2506, allocations: 35.92 kB / 430.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.2506, allocations: 3.938 kB / 430.2 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.902e-05/0.2507, allocations: 27.81 kB / 430.2 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.2507, allocations: 16 kB / 430.2 MB, free: 7.508 MB / 334.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.0001471/0.2508, allocations: 161.8 kB / 430.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.731e-05/0.2509, allocations: 15.91 kB / 430.4 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003592/0.2512, allocations: 202.4 kB / 430.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.2512, allocations: 0 / 430.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2512, allocations: 0 / 430.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.2512, allocations: 3.984 kB / 430.6 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007306/0.252, allocations: 0.5362 MB / 431.1 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.252, allocations: 3.938 kB / 431.1 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.866e-05/0.2521, allocations: 23.92 kB / 431.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2521, allocations: 4 kB / 431.2 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.2521, allocations: 4 kB / 431.2 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2521, allocations: 3.938 kB / 431.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2521, allocations: 7.984 kB / 431.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003366/0.2524, allocations: 283.7 kB / 431.5 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.884e-05/0.2524, allocations: 11.89 kB / 431.5 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.2525, allocations: 8 kB / 431.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.549e-05/0.2526, allocations: 15.92 kB / 431.5 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.689e-05/0.2526, allocations: 23.95 kB / 431.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.2526, allocations: 8 kB / 431.5 MB, free: 6.121 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.266e-05/0.2527, allocations: 95.27 kB / 431.6 MB, free: 6.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2527, allocations: 0 / 431.6 MB, free: 6.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002948/0.253, allocations: 47.89 kB / 431.7 MB, free: 5.98 MB / 334.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0006759/0.2537, allocations: 0.8215 MB / 432.5 MB, free: 5.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003081/0.254, allocations: 167.8 kB / 432.7 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.254, allocations: 0 / 432.7 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.2541, allocations: 75.86 kB / 432.7 MB, free: 4.895 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.2544, allocations: 31.86 kB / 432.8 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.2566, allocations: 2.012 MB / 434.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.257, allocations: 0.7363 MB / 435.5 MB, free: 1.969 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.158e-05/0.2571, allocations: 21.94 kB / 435.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.2572, allocations: 63.36 kB / 435.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2572, allocations: 0 / 435.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.2805, allocations: 3.973 MB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.88, allocations: 15.53 kB / 439.6 MB, free: 14.05 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.147348641010467] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.029761051991954 11.046069711 10.798022694 Calling exit ...