Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.QfURegulation.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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",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.001583/0.001583, allocations: 99.86 kB / 16.31 MB, free: 6.391 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.001759/0.001759, allocations: 190.2 kB / 17.24 MB, free: 5.922 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.431/1.431, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04936/0.04936, allocations: 8.097 MB / 299.2 MB, free: 6.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 67.89 kB / 361.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2037, allocations: 51.5 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.002586/0.2063, allocations: 2.059 MB / 415.4 MB, free: 23.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001606/0.208, allocations: 1.633 MB / 417 MB, free: 21.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.652e-05/0.2081, allocations: 4 kB / 417 MB, free: 21.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003086/0.2084, allocations: 139.2 kB / 417.2 MB, free: 21.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004662/0.2089, allocations: 226.7 kB / 417.4 MB, free: 21.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.2104, allocations: 1.209 MB / 418.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003112/0.2108, allocations: 374.6 kB / 419 MB, free: 19.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.2109, allocations: 113.9 kB / 419.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.2111, allocations: 167.5 kB / 419.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.2114, allocations: 195.2 kB / 419.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.217e-05/0.2114, allocations: 32 kB / 419.5 MB, free: 19.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003651/0.2118, allocations: 291.7 kB / 419.8 MB, free: 19.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.345e-05/0.2119, allocations: 83.73 kB / 419.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.212, allocations: 179.1 kB / 420 MB, free: 18.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004788/0.2125, allocations: 0.5454 MB / 420.6 MB, free: 18.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2125, allocations: 7.938 kB / 420.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2125, allocations: 7.938 kB / 420.6 MB, free: 18.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2125, allocations: 0 / 420.6 MB, free: 18.31 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003651/0.2162, allocations: 1.111 MB / 421.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.2162, allocations: 11.89 kB / 421.7 MB, free: 17.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.067e-05/0.2163, allocations: 66.73 kB / 421.8 MB, free: 17.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.653e-05/0.2164, allocations: 36.56 kB / 421.8 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.2167, allocations: 291.7 kB / 422.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001918/0.2169, allocations: 112.4 kB / 422.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.2169, allocations: 28.38 kB / 422.2 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.2184, allocations: 0.7173 MB / 422.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2184, allocations: 0 / 422.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.028e-05/0.2185, allocations: 12 kB / 422.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.2185, allocations: 4 kB / 423 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008958/0.2194, allocations: 457.4 kB / 423.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.2211, allocations: 1.545 MB / 424.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.2225, allocations: 0.7106 MB / 425.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005386/0.2231, allocations: 326.4 kB / 426 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001334/0.2232, allocations: 85.11 kB / 426.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003444/0.2235, allocations: 272.9 kB / 426.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.074e-06/0.2236, allocations: 0 / 426.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.003451/0.227, allocations: 1.218 MB / 427.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.2271, allocations: 140.5 kB / 427.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.2273, allocations: 228 kB / 427.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.2273, allocations: 37.7 kB / 427.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.44e-05/0.2274, allocations: 160.9 kB / 428.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.536e-05/0.2275, allocations: 106.5 kB / 428.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.2276, allocations: 94.23 kB / 428.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.054e-05/0.2277, allocations: 334.8 kB / 428.6 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.2279, allocations: 205 kB / 428.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003001/0.2282, allocations: 340.4 kB / 429.1 MB, free: 9.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005575/0.2288, allocations: 0.5374 MB / 429.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2288, allocations: 4 kB / 429.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001387/0.2302, allocations: 0.7941 MB / 430.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.2302, allocations: 8 kB / 430.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2302, allocations: 4 kB / 430.5 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002089/0.2323, allocations: 468.3 kB / 431 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.2326, allocations: 91.84 kB / 431 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.234, allocations: 0.9113 MB / 432 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003374/0.2343, allocations: 51.52 kB / 432 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.339e-05/0.2343, allocations: 16 kB / 432 MB, free: 6.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (varLoad.degradedMode,$PRE.varLoad.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001633/0.2345, allocations: 165.7 kB / 432.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000641/0.2352, allocations: 257.6 kB / 432.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009297/0.2361, allocations: 0.5787 MB / 433 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2361, allocations: 4 kB / 433 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.2361, allocations: 4 kB / 433 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2361, allocations: 3.984 kB / 433 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/0.2383, allocations: 1.365 MB / 434.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.2383, allocations: 4 kB / 434.4 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003569/0.2387, allocations: 83.88 kB / 434.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/0.2406, allocations: 456.4 kB / 434.9 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.166e-05/0.2407, allocations: 12 kB / 434.9 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.2419, allocations: 0.9135 MB / 435.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.2419, allocations: 7.984 kB / 435.9 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002316/0.2443, allocations: 1 MB / 436.9 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.915e-05/0.2443, allocations: 120.6 kB / 437 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.219e-05/0.2444, allocations: 7.938 kB / 437 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004187/0.2448, allocations: 43.97 kB / 437 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.077e-05/0.2449, allocations: 27.95 kB / 437 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.2449, allocations: 16 kB / 437.1 MB, free: 1.066 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001192/0.2451, allocations: 167.1 kB / 437.2 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2451, allocations: 4 kB / 437.2 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004232/0.2455, allocations: 111.8 kB / 437.3 MB, free: 0.7891 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,varLoad.degradedMode) * Number of discrete states: 1 (varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002791/0.2483, allocations: 1.564 MB / 438.9 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002053/0.2504, allocations: 0.7218 MB / 439.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.2504, allocations: 0 / 439.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.2515, allocations: 331.7 kB / 440 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007683/0.2523, allocations: 153.2 kB / 440.1 MB, free: 13.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007625/0.2599, allocations: 4.252 MB / 444.4 MB, free: 9.543 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.2603, allocations: 0.7693 MB / 445.1 MB, free: 8.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001708/0.2605, allocations: 46.94 kB / 445.2 MB, free: 8.703 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.2607, allocations: 103.4 kB / 445.3 MB, free: 8.602 MB / 318.1 MB Notification: Performance of SimCode: time 1.553e-06/0.2607, allocations: 4 kB / 445.3 MB, free: 8.598 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.2872, allocations: 8.793 MB / 454.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.14, allocations: 13 kB / 454.1 MB, free: 15.88 MB / 334.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.QfURegulation.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.QfURegulation_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1)