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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007072/0.007072, allocations: 103.6 kB / 15.74 MB, free: 6.445 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.001749/0.001749, allocations: 196.6 kB / 16.67 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2348/0.2348, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 65.25 kB / 436.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1047, allocations: 54.96 MB / 491.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.001386/0.1061, allocations: 0.5072 MB / 492 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001628/0.1063, allocations: 38.97 kB / 492.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.007e-05/0.1064, allocations: 0 / 492.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.014e-05/0.1064, allocations: 0 / 492.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.065e-05/0.1064, allocations: 0 / 492.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001699/0.1066, allocations: 15.92 kB / 492.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.614e-05/0.1066, allocations: 12 kB / 492.1 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.248e-05/0.1067, allocations: 0 / 492.1 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.863e-05/0.1067, allocations: 7.984 kB / 492.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.436e-05/0.1068, allocations: 3.938 kB / 492.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.1068, allocations: 4 kB / 492.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.612e-06/0.1068, allocations: 0 / 492.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.426e-05/0.1068, allocations: 3.984 kB / 492.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.988e-05/0.1069, allocations: 0 / 492.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.564e-05/0.1069, allocations: 15.92 kB / 492.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1069, allocations: 0 / 492.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1069, allocations: 0 / 492.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1069, allocations: 4 kB / 492.1 MB, free: 1.129 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.0003384/0.1073, allocations: 319.8 kB / 492.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1073, allocations: 8.031 kB / 492.5 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.258e-05/0.1074, allocations: 34.69 kB / 492.5 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.392e-05/0.1074, allocations: 4.938 kB / 492.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.581e-05/0.1075, allocations: 160.4 kB / 492.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.1075, allocations: 4.375 kB / 492.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.1075, allocations: 384 / 492.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.281e-05/0.1076, allocations: 42.19 kB / 492.7 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.1076, allocations: 3.938 kB / 492.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.1076, allocations: 0 / 492.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1076, allocations: 0 / 492.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.433e-05/0.1077, allocations: 4 kB / 492.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001122/0.1078, allocations: 157.6 kB / 492.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.309e-05/0.1078, allocations: 22.61 kB / 492.9 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.82e-05/0.1079, allocations: 16.91 kB / 492.9 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.1079, allocations: 0 / 492.9 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/0.1079, allocations: 34.5 kB / 492.9 MB, free: 164 kB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 7.52e-07/0.1079, allocations: 0 / 492.9 MB, free: 164 kB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003023/0.1082, allocations: 69.61 kB / 493 MB, free: 88 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.399e-05/0.1083, allocations: 55.34 kB / 493.1 MB, free: 20 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.841e-05/0.1083, allocations: 98.03 kB / 493.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.1084, allocations: 33.83 kB / 493.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.1084, allocations: 84.14 kB / 493.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.886e-05/0.1085, allocations: 11.84 kB / 493.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.1085, allocations: 17.72 kB / 493.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1086, allocations: 318.8 kB / 493.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.841e-05/0.1087, allocations: 4 kB / 493.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.168e-05/0.1087, allocations: 4 kB / 493.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.55e-05/0.1087, allocations: 16.86 kB / 493.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-07/0.1087, allocations: 4 kB / 493.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.146e-05/0.1088, allocations: 45.69 kB / 493.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.1088, allocations: 7.938 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.1088, allocations: 3.938 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.1088, allocations: 4 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.533e-05/0.1089, allocations: 7.984 kB / 493.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1089, allocations: 0 / 493.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.264e-05/0.109, allocations: 4 kB / 493.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.109, allocations: 0 / 493.7 MB, free: 15.32 MB / 366.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 8.409e-05/0.1091, allocations: 114.6 kB / 493.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/0.1091, allocations: 7.938 kB / 493.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.1092, allocations: 53.17 kB / 493.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1092, allocations: 0 / 493.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1092, allocations: 0 / 493.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.1092, allocations: 4 kB / 493.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.1094, allocations: 153.6 kB / 494 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1094, allocations: 8 kB / 494 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.422e-05/0.1094, allocations: 7.938 kB / 494.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.1094, allocations: 3.938 kB / 494.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.1094, allocations: 4 kB / 494.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1095, allocations: 7.984 kB / 494.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1095, allocations: 0 / 494.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.312e-05/0.1096, allocations: 69.12 kB / 494.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.1096, allocations: 81.05 kB / 494.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.016e-05/0.1096, allocations: 0 / 494.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.738e-05/0.1096, allocations: 0 / 494.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.1097, allocations: 7.984 kB / 494.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.1097, allocations: 4 kB / 494.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.883e-05/0.1097, allocations: 75.28 kB / 494.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1097, allocations: 0 / 494.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001661/0.1099, allocations: 4 kB / 494.3 MB, free: 14.62 MB / 366.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.0003993/0.1103, allocations: 0.6127 MB / 494.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.712e-05/0.1104, allocations: 23.95 kB / 494.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1104, allocations: 0 / 494.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.294e-05/0.1104, allocations: 11.94 kB / 495 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.1106, allocations: 4 kB / 495 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003068/0.1109, allocations: 118.6 kB / 495.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1112, allocations: 0.6768 MB / 495.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.18e-05/0.1112, allocations: 4 kB / 495.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.428e-05/0.1113, allocations: 7.438 kB / 495.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1113, allocations: 4 kB / 495.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.1337, allocations: 1.027 MB / 496.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.447/7.58, allocations: 23.22 kB / 496.8 MB, free: 12.09 MB / 366.1 MB (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 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_OOM_Intro_HelloWorld_inverse.fmu > AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe 2>&1)