Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.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.001418/0.001418, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001538/0.001538, allocations: 212.6 kB / 23.01 MB, free: 4.992 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.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.116/0.116, allocations: 24.04 MB / 337.2 MB, free: 11.32 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) 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(AES.Coursework.OOM_Intro.HelloWorld_inverse,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld_inverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.OOM_Intro.HelloWorld_inverse,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld_inverse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 67.91 kB / 473.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.35, allocations: 59.57 MB / 0.5209 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.001837/0.3518, allocations: 0.5115 MB / 0.5214 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001885/0.352, allocations: 32.11 kB / 0.5214 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.83e-05/0.352, allocations: 0 / 0.5214 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.71e-05/0.3521, allocations: 1.531 kB / 0.5214 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.494e-05/0.3521, allocations: 3.938 kB / 0.5214 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001715/0.3522, allocations: 7.297 kB / 0.5214 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.432e-05/0.3523, allocations: 5.203 kB / 0.5214 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.483e-05/0.3524, allocations: 1.812 kB / 0.5214 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.684e-05/0.3524, allocations: 7 kB / 0.5215 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.3524, allocations: 8.719 kB / 0.5215 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.3525, allocations: 0 / 0.5215 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.446e-06/0.3525, allocations: 1.406 kB / 0.5215 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.582e-05/0.3525, allocations: 4.781 kB / 0.5215 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.139e-05/0.3525, allocations: 1.312 kB / 0.5215 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 5.88e-05/0.3526, allocations: 11.2 kB / 0.5215 GB, free: 9.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3526, allocations: 1.734 kB / 0.5215 GB, free: 9.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3526, allocations: 0 / 0.5215 GB, free: 9.781 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.3526, allocations: 0 / 0.5215 GB, free: 9.781 MB / 382.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.0003467/0.3529, allocations: 252.6 kB / 0.5217 GB, free: 9.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.353, allocations: 10.33 kB / 0.5217 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.428e-05/0.353, allocations: 31.36 kB / 0.5218 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.363e-05/0.353, allocations: 5.984 kB / 0.5218 GB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.304e-05/0.3531, allocations: 109.3 kB / 0.5219 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.3531, allocations: 1.562 kB / 0.5219 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.3531, allocations: 1.594 kB / 0.5219 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.086e-05/0.3532, allocations: 32.17 kB / 0.5219 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.3532, allocations: 3.938 kB / 0.5219 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.3532, allocations: 0 / 0.5219 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.3532, allocations: 5.672 kB / 0.5219 GB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.643e-05/0.3532, allocations: 3.406 kB / 0.5219 GB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001126/0.3533, allocations: 125.2 kB / 0.522 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.282e-05/0.3534, allocations: 25.28 kB / 0.5221 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.065e-05/0.3534, allocations: 13.02 kB / 0.5221 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.3534, allocations: 3.984 kB / 0.5221 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.3535, allocations: 38.14 kB / 0.5221 GB, free: 9.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.3535, allocations: 0 / 0.5221 GB, free: 9.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003223/0.3538, allocations: 65.09 kB / 0.5222 GB, free: 9.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.062e-05/0.3538, allocations: 60.3 kB / 0.5222 GB, free: 8.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.092e-05/0.3539, allocations: 94.12 kB / 0.5223 GB, free: 8.852 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.624e-06/0.3539, allocations: 25.7 kB / 0.5223 GB, free: 8.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.437e-05/0.3539, allocations: 82.08 kB / 0.5224 GB, free: 8.738 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.3539, allocations: 17.22 kB / 0.5224 GB, free: 8.727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-05/0.354, allocations: 18.47 kB / 0.5225 GB, free: 8.707 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.017e-05/0.354, allocations: 313 kB / 0.5228 GB, free: 8.395 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.733e-05/0.354, allocations: 6.688 kB / 0.5228 GB, free: 8.391 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.274e-05/0.354, allocations: 4.562 kB / 0.5228 GB, free: 8.391 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.808e-05/0.3541, allocations: 20.86 kB / 0.5228 GB, free: 8.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.3541, allocations: 5.406 kB / 0.5228 GB, free: 8.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.713e-05/0.3541, allocations: 44.17 kB / 0.5228 GB, free: 8.336 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.3542, allocations: 9.625 kB / 0.5228 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3542, allocations: 0 / 0.5228 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.3542, allocations: 0 / 0.5228 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.276e-05/0.3543, allocations: 12.88 kB / 0.5229 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.3543, allocations: 1.156 kB / 0.5229 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.136e-05/0.3543, allocations: 0 / 0.5229 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.453e-06/0.3543, allocations: 1.953 kB / 0.5229 GB, free: 8.328 MB / 382.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/0.3543, allocations: 108.8 kB / 0.523 GB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.308e-06/0.3543, allocations: 9.094 kB / 0.523 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.3545, allocations: 57.16 kB / 0.523 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3545, allocations: 0 / 0.523 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3545, allocations: 1.188 kB / 0.523 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3545, allocations: 0.6562 kB / 0.523 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.067e-05/0.3545, allocations: 123.2 kB / 0.5231 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3545, allocations: 0.6094 kB / 0.5231 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.139e-05/0.3546, allocations: 8.094 kB / 0.5232 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.3546, allocations: 3.938 kB / 0.5232 GB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.3546, allocations: 1.062 kB / 0.5232 GB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3546, allocations: 4.516 kB / 0.5232 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3546, allocations: 0.875 kB / 0.5232 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.406e-05/0.3547, allocations: 78.22 kB / 0.5232 GB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.083e-06/0.3547, allocations: 5.938 kB / 0.5232 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.3547, allocations: 1.094 kB / 0.5232 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.035e-05/0.3547, allocations: 1.156 kB / 0.5232 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.709e-05/0.3547, allocations: 2.594 kB / 0.5232 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.3547, allocations: 5.125 kB / 0.5233 GB, free: 7.906 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.811e-05/0.3547, allocations: 81.53 kB / 0.5233 GB, free: 7.828 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3547, allocations: 1.375 kB / 0.5233 GB, free: 7.828 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001844/0.3549, allocations: 6.938 kB / 0.5233 GB, free: 7.824 MB / 382.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0002208/0.3551, allocations: 0.6183 MB / 0.5239 GB, free: 7.207 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.435e-05/0.3552, allocations: 15.81 kB / 0.524 GB, free: 7.203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.279e-06/0.3552, allocations: 0 / 0.524 GB, free: 7.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.788e-05/0.3553, allocations: 6.578 kB / 0.524 GB, free: 7.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.3554, allocations: 5.891 kB / 0.524 GB, free: 7.199 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003087/0.3557, allocations: 128.4 kB / 0.5241 GB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.664e-05/0.3557, allocations: 58.19 kB / 0.5241 GB, free: 6.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.218e-05/0.3558, allocations: 6.047 kB / 0.5242 GB, free: 6.977 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.583e-05/0.3558, allocations: 9.516 kB / 0.5242 GB, free: 6.973 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3558, allocations: 3.938 kB / 0.5242 GB, free: 6.969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.3845, allocations: 1.528 MB / 0.5257 GB, free: 6.188 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.52, allocations: 4.922 kB / 0.5257 GB, free: 6.188 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe ; mkfifo AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe ; head -c 1048576 < AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe >> ../files/AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_OOM_Intro_HelloWorld_inverse_fmu --startTime=0 --stopTime=100 --stepSize=0.0333333 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_OOM_Intro_HelloWorld_inverse.fmu > AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.191267410293221] Failed to read output from testmodel.py, exit status != 0: 11.629090651869774 11.64489891 11.288582843 Calling exit ...