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.001028/0.001028, allocations: 103.8 kB / 16.45 MB, free: 6.426 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.001078/0.001078, allocations: 192.1 kB / 17.39 MB, free: 5.664 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.215/1.215, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04394/0.04394, allocations: 8.107 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 67.89 kB / 414 MB, free: 22.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09453/0.09573, allocations: 51.51 MB / 465.5 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.003373/0.09915, allocations: 2.058 MB / 467.6 MB, free: 492 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.1015, allocations: 1.641 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.1016, allocations: 4 kB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004298/0.1021, allocations: 135.3 kB / 469.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006706/0.1028, allocations: 230.7 kB / 469.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002037/0.1048, allocations: 1.217 MB / 470.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005355/0.1054, allocations: 378.5 kB / 471.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.1056, allocations: 115.9 kB / 471.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003138/0.1059, allocations: 167.4 kB / 471.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003397/0.1063, allocations: 199.2 kB / 471.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.975e-05/0.1064, allocations: 31.98 kB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005384/0.1069, allocations: 295.8 kB / 471.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.107, allocations: 87.67 kB / 472 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.1072, allocations: 179.1 kB / 472.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007831/0.108, allocations: 0.5451 MB / 472.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.237e-05/0.1081, allocations: 4 kB / 472.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1081, allocations: 0 / 472.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.1081, allocations: 0 / 472.7 MB, free: 11.26 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003904/0.112, allocations: 1.114 MB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/0.1121, allocations: 11.89 kB / 473.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.899e-05/0.1122, allocations: 74.66 kB / 473.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.1123, allocations: 40.7 kB / 474 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/0.1127, allocations: 296.2 kB / 474.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.1129, allocations: 104.5 kB / 474.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.826e-05/0.113, allocations: 32.38 kB / 474.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.1146, allocations: 0.7173 MB / 475.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.1146, allocations: 0 / 475.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.269e-05/0.1147, allocations: 15.98 kB / 475.1 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.1147, allocations: 4 kB / 475.1 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.1157, allocations: 457.4 kB / 475.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.1179, allocations: 1.534 MB / 477.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.1194, allocations: 0.7036 MB / 477.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006155/0.1201, allocations: 326.5 kB / 478.1 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001495/0.1202, allocations: 93.25 kB / 478.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004109/0.1207, allocations: 272.9 kB / 478.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.504e-06/0.1207, allocations: 0 / 478.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003522/0.1242, allocations: 1.226 MB / 479.7 MB, free: 3.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.1243, allocations: 140.5 kB / 479.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.1246, allocations: 228.1 kB / 480.1 MB, free: 3.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.665e-05/0.1246, allocations: 37.7 kB / 480.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.1247, allocations: 157 kB / 480.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.124e-05/0.1248, allocations: 123 kB / 480.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.125, allocations: 94.23 kB / 480.5 MB, free: 3.066 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1251, allocations: 334.8 kB / 480.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000301/0.1254, allocations: 205 kB / 481 MB, free: 2.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003653/0.1258, allocations: 336.5 kB / 481.4 MB, free: 2.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007/0.1265, allocations: 0.5452 MB / 481.9 MB, free: 1.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1265, allocations: 0 / 481.9 MB, free: 1.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001497/0.128, allocations: 0.7904 MB / 482.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.128, allocations: 4 kB / 482.7 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.128, allocations: 4 kB / 482.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002059/0.1301, allocations: 464.4 kB / 483.1 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003084/0.1304, allocations: 87.83 kB / 483.2 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/0.1319, allocations: 0.9077 MB / 484.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.1322, allocations: 51.72 kB / 484.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.1323, allocations: 20 kB / 484.2 MB, free: 15.2 MB / 366.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.000198/0.1325, allocations: 170.5 kB / 484.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006582/0.1331, allocations: 257.3 kB / 484.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.1342, allocations: 0.571 MB / 485.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.1342, allocations: 8 kB / 485.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1342, allocations: 0 / 485.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1342, allocations: 8.078 kB / 485.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002536/0.1368, allocations: 1.382 MB / 486.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.1368, allocations: 0 / 486.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000384/0.1372, allocations: 83.88 kB / 486.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002114/0.1393, allocations: 468.3 kB / 487.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.397e-05/0.1394, allocations: 8 kB / 487.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001465/0.1409, allocations: 0.9115 MB / 488.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1409, allocations: 0 / 488.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002548/0.1434, allocations: 0.9977 MB / 489.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.1436, allocations: 120.8 kB / 489.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.428e-05/0.1436, allocations: 11.94 kB / 489.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004249/0.1441, allocations: 47.97 kB / 489.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.1441, allocations: 23.95 kB / 489.3 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.285e-05/0.1442, allocations: 16 kB / 489.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001702/0.1444, allocations: 167.1 kB / 489.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1444, allocations: 0 / 489.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005065/0.1449, allocations: 111.9 kB / 489.5 MB, free: 9.715 MB / 366.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.002836/0.1477, allocations: 1.576 MB / 491.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00198/0.1497, allocations: 0.6976 MB / 491.8 MB, free: 7.398 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.1497, allocations: 0 / 491.8 MB, free: 7.398 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.1508, allocations: 328.6 kB / 492.1 MB, free: 7.078 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00075/0.1516, allocations: 152.7 kB / 492.3 MB, free: 6.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007698/0.1593, allocations: 4.251 MB / 496.5 MB, free: 2.488 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.1597, allocations: 0.7809 MB / 497.3 MB, free: 1.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.1599, allocations: 42.94 kB / 497.4 MB, free: 1.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.1601, allocations: 103.4 kB / 497.5 MB, free: 1.531 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1601, allocations: 4 kB / 497.5 MB, free: 1.527 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.1865, allocations: 8.928 MB / 0.4945 GB, free: 8.691 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.82, allocations: 4.406 kB / 0.4945 GB, free: 8.688 MB / 382.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)