Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.OOM_Intro.HelloWorld.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) 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(AES.Coursework.OOM_Intro.HelloWorld,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.OOM_Intro.HelloWorld,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009246/0.0009247, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009336/0.000934, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2051/0.2051, allocations: 22.33 MB / 313.3 MB, free: 13.05 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002787, allocations: 11.98 kB / 379.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2657, allocations: 55.97 MB / 435.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld): time 0.0005163/0.2663, allocations: 239.9 kB / 436.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001083/0.2664, allocations: 23.55 kB / 436.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.615e-05/0.2664, allocations: 1.969 kB / 436.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.537e-06/0.2664, allocations: 0 / 436.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.237e-05/0.2665, allocations: 0 / 436.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.525e-05/0.2666, allocations: 3.891 kB / 436.2 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.896e-05/0.2666, allocations: 11.38 kB / 436.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.218e-05/0.2667, allocations: 0 / 436.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.369e-05/0.2667, allocations: 4.094 kB / 436.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.083e-05/0.2668, allocations: 11.36 kB / 436.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.2668, allocations: 2.781 kB / 436.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.394e-06/0.2668, allocations: 0 / 436.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.165e-06/0.2668, allocations: 1.094 kB / 436.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.748e-05/0.2668, allocations: 29.7 kB / 436.2 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 2.845e-05/0.2669, allocations: 2.938 kB / 436.2 MB, free: 37.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.853e-06/0.2669, allocations: 0 / 436.2 MB, free: 37.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2669, allocations: 0 / 436.2 MB, free: 37.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.2669, allocations: 3.938 kB / 436.2 MB, free: 37.78 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002599/0.2671, allocations: 318.2 kB / 436.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.2672, allocations: 13.19 kB / 436.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.387e-05/0.2672, allocations: 36.94 kB / 436.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.923e-05/0.2672, allocations: 3.906 kB / 436.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.868e-05/0.2673, allocations: 159.9 kB / 436.7 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.2673, allocations: 6.438 kB / 436.7 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.2674, allocations: 0 / 436.7 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.711e-05/0.2674, allocations: 36.39 kB / 436.8 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.2675, allocations: 3.953 kB / 436.8 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-06/0.2675, allocations: 6.781 kB / 436.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2675, allocations: 4 kB / 436.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.362e-05/0.2675, allocations: 6.406 kB / 436.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001034/0.2676, allocations: 148.8 kB / 436.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.513e-05/0.2677, allocations: 34.22 kB / 437 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.2677, allocations: 0 / 437 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.26e-05/0.2677, allocations: 30.56 kB / 437 MB, free: 36.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.02e-07/0.2677, allocations: 4 kB / 437 MB, free: 36.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001412/0.2679, allocations: 48.78 kB / 437.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.969e-05/0.2679, allocations: 54.22 kB / 437.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.067e-05/0.268, allocations: 100.1 kB / 437.2 MB, free: 36.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.302e-06/0.268, allocations: 25.7 kB / 437.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.702e-05/0.268, allocations: 80.14 kB / 437.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.268, allocations: 11.42 kB / 437.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-06/0.268, allocations: 0 / 437.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.981e-05/0.2681, allocations: 318 kB / 437.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.485e-05/0.2681, allocations: 6.688 kB / 437.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.847e-05/0.2681, allocations: 6.906 kB / 437.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.153e-05/0.2682, allocations: 9.797 kB / 437.7 MB, free: 36.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2682, allocations: 0 / 437.7 MB, free: 36.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.144e-05/0.2682, allocations: 47.81 kB / 437.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.2683, allocations: 4.594 kB / 437.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.2683, allocations: 0 / 437.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.267e-06/0.2683, allocations: 3 kB / 437.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.311e-05/0.2684, allocations: 9.938 kB / 437.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.2684, allocations: 6.484 kB / 437.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.975e-05/0.2684, allocations: 7.844 kB / 437.7 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.2684, allocations: 0 / 437.7 MB, free: 36.17 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: x:VARIABLE(start = xstart fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.2685, allocations: 108.8 kB / 437.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.243e-06/0.2685, allocations: 0 / 437.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.72e-05/0.2685, allocations: 13.97 kB / 437.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.2686, allocations: 0 / 437.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2686, allocations: 4 kB / 437.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.2686, allocations: 7.141 kB / 437.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.599e-05/0.2686, allocations: 153.6 kB / 438 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.2686, allocations: 0 / 438 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.478e-05/0.2687, allocations: 9.688 kB / 438 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.2687, allocations: 0 / 438 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.2687, allocations: 3.094 kB / 438 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.2687, allocations: 0 / 438 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2687, allocations: 0 / 438 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.2689, allocations: 77.72 kB / 438.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.612e-05/0.2689, allocations: 81.05 kB / 438.2 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.518e-06/0.2689, allocations: 3.094 kB / 438.2 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.288e-05/0.2689, allocations: 4 kB / 438.2 MB, free: 35.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.329e-05/0.269, allocations: 3.469 kB / 438.2 MB, free: 35.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-06/0.269, allocations: 2.188 kB / 438.2 MB, free: 35.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.714e-05/0.269, allocations: 82.06 kB / 438.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.269, allocations: 4.094 kB / 438.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001612/0.2692, allocations: 2.688 kB / 438.3 MB, free: 35.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002159/0.2694, allocations: 0.6052 MB / 438.9 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.68e-05/0.2695, allocations: 18.64 kB / 438.9 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2695, allocations: 4.094 kB / 438.9 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.547e-05/0.2695, allocations: 9.625 kB / 438.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.894e-05/0.2696, allocations: 2.406 kB / 438.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004107/0.27, allocations: 359 kB / 439.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.996e-05/0.2701, allocations: 0.6824 MB / 440 MB, free: 33.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.85e-05/0.2701, allocations: 0 / 440 MB, free: 33.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.308e-05/0.2702, allocations: 7.438 kB / 440 MB, free: 33.93 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2702, allocations: 0 / 440 MB, free: 33.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.826/3.096, allocations: 0.873 MB / 440.8 MB, free: 33.8 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/3.096, allocations: 155.9 kB / 441 MB, free: 33.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.45/4.546, allocations: 0 / 441 MB, free: 33.56 MB / 350.1 MB (rm -f AES_AES.Coursework.OOM_Intro.HelloWorld.pipe ; mkfifo AES_AES.Coursework.OOM_Intro.HelloWorld.pipe ; head -c 1048576 < AES_AES.Coursework.OOM_Intro.HelloWorld.pipe >> ../files/AES_AES.Coursework.OOM_Intro.HelloWorld.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_OOM_Intro_HelloWorld_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_OOM_Intro_HelloWorld.fmu > AES_AES.Coursework.OOM_Intro.HelloWorld.pipe 2>&1) Environment - environmentSimulation: