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.001258/0.001258, allocations: 101.5 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.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.001291/0.001291, allocations: 188.4 kB / 24.49 MB, free: 3.957 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.333/1.333, allocations: 225.7 MB / 253.3 MB, free: 12.85 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.001439/0.001439, allocations: 47.94 kB / 371.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2435, allocations: 52.19 MB / 423.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002568/0.246, allocations: 1.466 MB / 424.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006161/0.2466, allocations: 271.2 kB / 425.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.2467, allocations: 4 kB / 425.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.2468, allocations: 27.67 kB / 425.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.562e-05/0.2469, allocations: 27.78 kB / 425.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003874/0.2473, allocations: 115.8 kB / 425.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003387/0.2476, allocations: 263.5 kB / 425.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000275/0.2479, allocations: 144.8 kB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.947e-05/0.248, allocations: 83.77 kB / 425.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.2481, allocations: 95.59 kB / 425.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.938e-05/0.2482, allocations: 24 kB / 425.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.687e-05/0.2483, allocations: 32 kB / 425.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.151e-05/0.2483, allocations: 67.75 kB / 425.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.2484, allocations: 75.59 kB / 426 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003057/0.2487, allocations: 243 kB / 426.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.2487, allocations: 4 kB / 426.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2487, allocations: 0 / 426.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2488, allocations: 4 kB / 426.2 MB, free: 11.51 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.0006554/0.2494, allocations: 405.1 kB / 426.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2494, allocations: 8.031 kB / 426.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.441e-05/0.2495, allocations: 8.688 kB / 426.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.16e-05/0.2495, allocations: 66.66 kB / 426.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.804e-05/0.2496, allocations: 24.8 kB / 426.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.2499, allocations: 166.3 kB / 426.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.2499, allocations: 20.88 kB / 426.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.657e-05/0.2499, allocations: 32.31 kB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.2504, allocations: 239 kB / 427.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.2504, allocations: 0 / 427.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/0.2504, allocations: 15.98 kB / 427.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.2504, allocations: 7.938 kB / 427.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/0.2507, allocations: 157.7 kB / 427.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.2517, allocations: 0.6199 MB / 428 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/0.252, allocations: 158.8 kB / 428.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.2521, allocations: 64.83 kB / 428.2 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.2522, allocations: 7.938 kB / 428.2 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.2524, allocations: 126.8 kB / 428.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.2524, allocations: 0 / 428.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004244/0.2528, allocations: 213.5 kB / 428.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.2528, allocations: 63.33 kB / 428.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.253, allocations: 142 kB / 428.8 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.253, allocations: 45.69 kB / 428.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.785e-05/0.2531, allocations: 136.8 kB / 428.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.2531, allocations: 51.59 kB / 429 MB, free: 8.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.2533, allocations: 81.97 kB / 429.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2534, allocations: 326.8 kB / 429.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.2535, allocations: 60.62 kB / 429.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.2537, allocations: 136 kB / 429.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.2539, allocations: 175.2 kB / 429.7 MB, free: 7.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.2539, allocations: 3.938 kB / 429.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003729/0.2543, allocations: 245.3 kB / 430 MB, free: 7.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.2543, allocations: 4 kB / 430 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2543, allocations: 0 / 430 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2543, allocations: 8.219 kB / 430 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.2545, allocations: 31.91 kB / 430 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.2545, allocations: 4 kB / 430 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.2546, allocations: 23.83 kB / 430.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.696e-05/0.2546, allocations: 12 kB / 430.1 MB, free: 7.426 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.0001546/0.2548, allocations: 161.7 kB / 430.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/0.2548, allocations: 11.91 kB / 430.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003569/0.2551, allocations: 202.4 kB / 430.4 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.2551, allocations: 0 / 430.4 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.2551, allocations: 4 kB / 430.4 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2552, allocations: 0 / 430.4 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007531/0.2559, allocations: 0.5245 MB / 431 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2559, allocations: 0 / 431 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.925e-05/0.256, allocations: 19.98 kB / 431 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.256, allocations: 0 / 431 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.872e-05/0.256, allocations: 11.98 kB / 431 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.256, allocations: 3.938 kB / 431 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.256, allocations: 0 / 431 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004212/0.2564, allocations: 291.6 kB / 431.3 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.88e-05/0.2565, allocations: 19.83 kB / 431.3 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.682e-05/0.2565, allocations: 11.98 kB / 431.3 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.011e-05/0.2566, allocations: 11.94 kB / 431.3 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.112e-05/0.2566, allocations: 23.95 kB / 431.4 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.2567, allocations: 4 kB / 431.4 MB, free: 6.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.935e-05/0.2567, allocations: 101.4 kB / 431.5 MB, free: 5.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2567, allocations: 0 / 431.5 MB, free: 5.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002863/0.257, allocations: 47.89 kB / 431.5 MB, free: 5.91 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.0006588/0.2577, allocations: 0.8177 MB / 432.3 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003133/0.258, allocations: 167.8 kB / 432.5 MB, free: 4.902 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.258, allocations: 7.938 kB / 432.5 MB, free: 4.895 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.2582, allocations: 83.78 kB / 432.6 MB, free: 4.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.2584, allocations: 19.94 kB / 432.6 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.2606, allocations: 2.008 MB / 434.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.2607, allocations: 125 kB / 434.7 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.474e-05/0.2608, allocations: 21.94 kB / 434.7 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2609, allocations: 67.41 kB / 434.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2609, allocations: 0 / 434.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02333/0.2843, allocations: 4.013 MB / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11, allocations: 15.98 kB / 438.8 MB, free: 14.57 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.231721763964742] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.16083783400245 11.176954265 10.925230864 Calling exit ...