Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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: translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008615/0.0008615, allocations: 99.98 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009764/0.0009765, allocations: 178.4 kB / 16.58 MB, free: 6.422 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.517/1.517, allocations: 223.2 MB / 240.6 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2466/0.2466, allocations: 22.35 MB / 314.1 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003913/0.0003916, allocations: 12 kB / 382.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4229/0.4233, allocations: 55.97 MB / 438.6 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.001778/0.4251, allocations: 1.033 MB / 439.6 MB, free: 38.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.427, allocations: 1.335 MB / 440.9 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.4272, allocations: 4 kB / 440.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004422/0.4277, allocations: 69.31 kB / 441 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.4279, allocations: 76.17 kB / 441.1 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.4282, allocations: 146.4 kB / 441.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.4285, allocations: 308.3 kB / 441.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.4287, allocations: 71.64 kB / 441.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.4289, allocations: 139.7 kB / 441.7 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.4292, allocations: 135.1 kB / 441.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.704e-05/0.4292, allocations: 8.312 kB / 441.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.14e-05/0.4293, allocations: 8.656 kB / 441.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.799e-05/0.4293, allocations: 58.45 kB / 441.9 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.125e-05/0.4294, allocations: 67.77 kB / 442 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.4296, allocations: 170.6 kB / 442.2 MB, free: 37.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.4296, allocations: 3.938 kB / 442.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.4297, allocations: 3.328 kB / 442.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.4297, allocations: 0 / 442.2 MB, free: 37.05 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001517/0.4312, allocations: 0.6562 MB / 442.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.4313, allocations: 8.406 kB / 442.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.272e-05/0.4313, allocations: 31.5 kB / 442.9 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007349/0.4321, allocations: 366.6 kB / 443.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.4321, allocations: 20.77 kB / 443.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.96e-05/0.4322, allocations: 20 kB / 443.3 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000358/0.4326, allocations: 219.6 kB / 443.5 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.4326, allocations: 3.953 kB / 443.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.4326, allocations: 10.97 kB / 443.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.4326, allocations: 2.875 kB / 443.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.4329, allocations: 152.8 kB / 443.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.4339, allocations: 0.9503 MB / 444.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005189/0.4345, allocations: 241.7 kB / 444.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.4346, allocations: 79.89 kB / 444.9 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.4346, allocations: 3.156 kB / 444.9 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.4347, allocations: 34.56 kB / 444.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.4347, allocations: 0 / 444.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004641/0.4352, allocations: 259.7 kB / 445.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.4352, allocations: 54.38 kB / 445.2 MB, free: 35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005824/0.4358, allocations: 374.5 kB / 445.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.4358, allocations: 29.7 kB / 445.6 MB, free: 34.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.4359, allocations: 174.6 kB / 445.8 MB, free: 34.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.728e-05/0.436, allocations: 74.11 kB / 445.9 MB, free: 34.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.708e-06/0.436, allocations: 4 kB / 445.9 MB, free: 34.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.946e-05/0.4361, allocations: 348.7 kB / 446.2 MB, free: 34.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.4362, allocations: 67.81 kB / 446.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.4363, allocations: 97.95 kB / 446.4 MB, free: 34.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.4365, allocations: 75.31 kB / 446.5 MB, free: 34.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4365, allocations: 4 kB / 446.5 MB, free: 34.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003241/0.4368, allocations: 247.4 kB / 446.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.4368, allocations: 6.594 kB / 446.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4368, allocations: 3 kB / 446.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.4369, allocations: 0 / 446.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.437, allocations: 49.47 kB / 446.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.437, allocations: 10.89 kB / 446.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.4373, allocations: 49.81 kB / 446.8 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.4373, allocations: 5.719 kB / 446.8 MB, free: 34 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] g1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001511/0.4375, allocations: 162 kB / 447 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.4375, allocations: 34.8 kB / 447 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.655e-05/0.4376, allocations: 42.33 kB / 447.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.4376, allocations: 0 / 447.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4376, allocations: 0 / 447.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.4376, allocations: 3.031 kB / 447.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002939/0.4379, allocations: 325.8 kB / 447.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4379, allocations: 0 / 447.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.4381, allocations: 36.36 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.4381, allocations: 5.984 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.4381, allocations: 4 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.4381, allocations: 2.656 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4381, allocations: 0 / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004332/0.4386, allocations: 384.7 kB / 447.8 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.4386, allocations: 113.8 kB / 447.9 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.4387, allocations: 4 kB / 447.9 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.4389, allocations: 41.16 kB / 448 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.439, allocations: 9.828 kB / 448 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.517e-06/0.439, allocations: 3.188 kB / 448 MB, free: 33.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004925/0.4395, allocations: 289.6 kB / 448.3 MB, free: 33.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4395, allocations: 3.938 kB / 448.3 MB, free: 33.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.4398, allocations: 47.03 kB / 448.3 MB, free: 33.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.y) * 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 (20): * Single equations (assignments): 20 * 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.0001068/0.4399, allocations: 96.5 kB / 448.4 MB, free: 32.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003126/0.4402, allocations: 169.2 kB / 448.6 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4402, allocations: 4.25 kB / 448.6 MB, free: 32.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.4404, allocations: 87.97 kB / 448.7 MB, free: 32.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.4407, allocations: 49.73 kB / 448.7 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008767/0.4416, allocations: 0.6365 MB / 449.3 MB, free: 32.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.4419, allocations: 0.7811 MB / 450.1 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.533e-05/0.442, allocations: 22.59 kB / 450.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.442, allocations: 3.938 kB / 450.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of Templates: time 0.005075/0.4471, allocations: 3.157 MB / 453.3 MB, free: 31.48 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppAES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSecCalcHelperMain.o OMCppAES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSecCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSecCalcHelperMain.o] Error 1