Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Devel_test_models.Test_SR01.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.Devel_test_models.Test_SR01,fileNamePrefix="AES_AES_Devel_test_models_Test_SR01",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Devel_test_models.Test_SR01,fileNamePrefix="AES_AES_Devel_test_models_Test_SR01",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.001514/0.001515, allocations: 108 kB / 15.6 MB, free: 132 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.002051/0.002051, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2195/0.2195, allocations: 22.37 MB / 312.8 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 63.89 kB / 380.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2764, allocations: 54.94 MB / 435.9 MB, free: 39.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Devel_test_models.Test_SR01): time 0.001918/0.2783, allocations: 0.6994 MB / 436.6 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001596/0.2785, allocations: 25.19 kB / 436.6 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.628e-05/0.2785, allocations: 2.844 kB / 436.6 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.654e-05/0.2786, allocations: 3.938 kB / 436.6 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.125e-05/0.2787, allocations: 0 / 436.6 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.868e-05/0.2787, allocations: 7.281 kB / 436.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.748e-05/0.2788, allocations: 19.97 kB / 436.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.742e-05/0.2789, allocations: 10.91 kB / 436.7 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.221e-05/0.2789, allocations: 6.812 kB / 436.7 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.209e-05/0.279, allocations: 18.41 kB / 436.7 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.279, allocations: 2.938 kB / 436.7 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.104e-05/0.279, allocations: 0 / 436.7 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.736e-05/0.2791, allocations: 14.23 kB / 436.7 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.316e-05/0.2791, allocations: 7.938 kB / 436.7 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.567e-05/0.2792, allocations: 20.55 kB / 436.7 MB, free: 39.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2792, allocations: 0 / 436.7 MB, free: 39.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2792, allocations: 0 / 436.7 MB, free: 39.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2792, allocations: 0 / 436.7 MB, free: 39.33 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003386/0.2795, allocations: 325.3 kB / 437 MB, free: 38.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.2796, allocations: 13.47 kB / 437.1 MB, free: 38.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.837e-05/0.2796, allocations: 30.75 kB / 437.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.342e-05/0.2796, allocations: 7.844 kB / 437.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.2798, allocations: 172.3 kB / 437.3 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.794e-06/0.2798, allocations: 2.969 kB / 437.3 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.2798, allocations: 384 / 437.3 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.944e-05/0.2799, allocations: 43.75 kB / 437.3 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.2799, allocations: 6.781 kB / 437.3 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.2799, allocations: 0 / 437.3 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.2799, allocations: 3.938 kB / 437.3 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.156e-05/0.2799, allocations: 20.17 kB / 437.3 MB, free: 38.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002824/0.2802, allocations: 254 kB / 437.6 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.19e-05/0.2803, allocations: 40.09 kB / 437.6 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.687e-05/0.2804, allocations: 10.52 kB / 437.6 MB, free: 38.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.2804, allocations: 2.875 kB / 437.6 MB, free: 38.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.28e-05/0.2804, allocations: 38.56 kB / 437.7 MB, free: 38.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.021e-06/0.2804, allocations: 0 / 437.7 MB, free: 38.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001495/0.2806, allocations: 56.8 kB / 437.7 MB, free: 38.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.528e-05/0.2806, allocations: 54.73 kB / 437.8 MB, free: 38.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.938e-05/0.2807, allocations: 99.11 kB / 437.9 MB, free: 38.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.655e-06/0.2807, allocations: 25.7 kB / 437.9 MB, free: 38.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.893e-05/0.2807, allocations: 84.14 kB / 438 MB, free: 37.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.579e-05/0.2807, allocations: 9.781 kB / 438 MB, free: 37.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.43e-05/0.2808, allocations: 16.47 kB / 438 MB, free: 37.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.796e-05/0.2808, allocations: 317.5 kB / 438.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.568e-05/0.2808, allocations: 5.969 kB / 438.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.148e-05/0.2808, allocations: 6.781 kB / 438.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.33e-05/0.2809, allocations: 20.98 kB / 438.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2809, allocations: 3.938 kB / 438.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.275e-05/0.281, allocations: 50.88 kB / 438.4 MB, free: 37.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.281, allocations: 5.688 kB / 438.4 MB, free: 37.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.281, allocations: 4 kB / 438.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.281, allocations: 0 / 438.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.903e-05/0.2811, allocations: 8.531 kB / 438.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.2811, allocations: 0 / 438.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.341e-05/0.2811, allocations: 3.938 kB / 438.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.2811, allocations: 2.562 kB / 438.4 MB, free: 37.57 MB / 350.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.635e-05/0.2812, allocations: 118.5 kB / 438.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.464e-05/0.2812, allocations: 7.234 kB / 438.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001456/0.2813, allocations: 77.39 kB / 438.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2814, allocations: 3.234 kB / 438.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2814, allocations: 0 / 438.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2814, allocations: 3.984 kB / 438.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.2815, allocations: 164.5 kB / 438.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2815, allocations: 0 / 438.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.087e-05/0.2815, allocations: 10.81 kB / 438.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.2816, allocations: 0 / 438.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.2816, allocations: 6.625 kB / 438.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2816, allocations: 4 kB / 438.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2816, allocations: 0 / 438.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.126e-05/0.2817, allocations: 158.6 kB / 439 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.065e-05/0.2817, allocations: 84.95 kB / 439.1 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.2817, allocations: 0 / 439.1 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.325e-05/0.2818, allocations: 6.938 kB / 439.1 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.892e-05/0.2818, allocations: 128 / 439.1 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.012e-06/0.2818, allocations: 10.09 kB / 439.1 MB, free: 36.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.353e-05/0.2818, allocations: 82.34 kB / 439.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2818, allocations: 0 / 439.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002083/0.2821, allocations: 6.938 kB / 439.2 MB, free: 36.84 MB / 350.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 (5): * Single equations (assignments): 5 * 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.0002371/0.2823, allocations: 0.6848 MB / 439.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.788e-05/0.2824, allocations: 24.22 kB / 439.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2824, allocations: 0 / 439.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.17e-05/0.2824, allocations: 19.39 kB / 439.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.2827, allocations: 2.75 kB / 439.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006843/0.2834, allocations: 1.184 MB / 441.1 MB, free: 34.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.492e-05/0.2835, allocations: 0.6805 MB / 441.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.977e-05/0.2835, allocations: 7.125 kB / 441.8 MB, free: 34.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.555e-05/0.2836, allocations: 13.69 kB / 441.8 MB, free: 34.27 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2836, allocations: 0 / 441.8 MB, free: 34.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01647/0.3001, allocations: 1.244 MB / 443 MB, free: 33.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.248/7.548, allocations: 16.66 kB / 443 MB, free: 33.9 MB / 350.1 MB (rm -f AES_AES.Devel_test_models.Test_SR01.pipe ; mkfifo AES_AES.Devel_test_models.Test_SR01.pipe ; head -c 1048576 < AES_AES.Devel_test_models.Test_SR01.pipe >> ../files/AES_AES.Devel_test_models.Test_SR01.sim & python3 -m fmpy simulate --output-file AES_AES.Devel_test_models.Test_SR01_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 AES_AES_Devel_test_models_Test_SR01.fmu > AES_AES.Devel_test_models.Test_SR01.pipe 2>&1)