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.001312/0.001313, allocations: 110.7 kB / 16.45 MB, free: 6.504 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.001282/0.001282, allocations: 186.4 kB / 17.38 MB, free: 5.688 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.357/1.357, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05107/0.05107, allocations: 8.102 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 67.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09669, allocations: 51.51 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.00341/0.1001, allocations: 2.062 MB / 467.6 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.1026, allocations: 1.629 MB / 469.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.1027, allocations: 11.94 kB / 469.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000397/0.1031, allocations: 139.2 kB / 469.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006219/0.1037, allocations: 222.7 kB / 469.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002133/0.1059, allocations: 1.214 MB / 470.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004901/0.1064, allocations: 378.5 kB / 471.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.1066, allocations: 119.9 kB / 471.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.1069, allocations: 167.4 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.1072, allocations: 195.2 kB / 471.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.119e-05/0.1072, allocations: 32 kB / 471.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004814/0.1077, allocations: 295.8 kB / 471.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.1078, allocations: 91.66 kB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001883/0.108, allocations: 171.2 kB / 472.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000695/0.1087, allocations: 0.5567 MB / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1088, allocations: 0 / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1088, allocations: 0 / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.1088, allocations: 4 kB / 472.7 MB, free: 11.38 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.003867/0.1127, allocations: 1.122 MB / 473.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.1127, allocations: 11.89 kB / 473.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.237e-05/0.1128, allocations: 66.72 kB / 473.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.862e-05/0.1129, allocations: 40.7 kB / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.1133, allocations: 300.2 kB / 474.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002175/0.1135, allocations: 96.52 kB / 474.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.206e-05/0.1136, allocations: 32.38 kB / 474.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.1152, allocations: 0.7134 MB / 475.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1153, allocations: 7.938 kB / 475.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.956e-05/0.1153, allocations: 8 kB / 475.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.1153, allocations: 11.98 kB / 475.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.1164, allocations: 453.5 kB / 475.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002214/0.1186, allocations: 1.538 MB / 477.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.1203, allocations: 0.6998 MB / 477.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000633/0.1209, allocations: 326.4 kB / 478.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001696/0.1211, allocations: 89.09 kB / 478.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004399/0.1216, allocations: 280.9 kB / 478.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.904e-06/0.1216, allocations: 0 / 478.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.00376/0.1254, allocations: 1.23 MB / 479.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.1255, allocations: 144.5 kB / 479.9 MB, free: 3.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.1257, allocations: 216.1 kB / 480.1 MB, free: 3.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.1258, allocations: 41.69 kB / 480.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.1259, allocations: 157.2 kB / 480.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.997e-05/0.126, allocations: 115 kB / 480.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.1262, allocations: 98.23 kB / 480.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1263, allocations: 346.7 kB / 480.8 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003258/0.1267, allocations: 201.1 kB / 481 MB, free: 2.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.1271, allocations: 334.8 kB / 481.3 MB, free: 2.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007442/0.1279, allocations: 0.549 MB / 481.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1279, allocations: 0 / 481.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001648/0.1295, allocations: 0.7866 MB / 482.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1296, allocations: 8 kB / 482.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1296, allocations: 4 kB / 482.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002182/0.1318, allocations: 464.3 kB / 483.1 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003168/0.1321, allocations: 87.89 kB / 483.2 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.1336, allocations: 0.9192 MB / 484.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003258/0.134, allocations: 39.73 kB / 484.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.415e-05/0.134, allocations: 23.98 kB / 484.2 MB, free: 15.31 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.0002133/0.1343, allocations: 166.5 kB / 484.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007075/0.135, allocations: 253.3 kB / 484.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.1361, allocations: 0.5749 MB / 485.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.1361, allocations: 7.984 kB / 485.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.1361, allocations: 4 kB / 485.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.1361, allocations: 4 kB / 485.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/0.1388, allocations: 1.377 MB / 486.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.1388, allocations: 4 kB / 486.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000374/0.1392, allocations: 83.89 kB / 486.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00203/0.1412, allocations: 456.3 kB / 487.1 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.495e-05/0.1412, allocations: 12 kB / 487.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001493/0.1427, allocations: 0.9121 MB / 488 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1428, allocations: 7.938 kB / 488.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.1454, allocations: 0.9939 MB / 489.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.611e-05/0.1455, allocations: 116.8 kB / 489.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.37e-05/0.1455, allocations: 15.94 kB / 489.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000407/0.146, allocations: 44 kB / 489.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.337e-05/0.1461, allocations: 31.91 kB / 489.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/0.1461, allocations: 16 kB / 489.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001806/0.1463, allocations: 167.1 kB / 489.4 MB, free: 9.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1463, allocations: 4 kB / 489.4 MB, free: 9.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004466/0.1467, allocations: 103.9 kB / 489.5 MB, free: 9.828 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.003041/0.1498, allocations: 1.572 MB / 491.1 MB, free: 8.215 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001996/0.1518, allocations: 0.7097 MB / 491.8 MB, free: 7.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1518, allocations: 0 / 491.8 MB, free: 7.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.1529, allocations: 320.3 kB / 492.1 MB, free: 7.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/0.1537, allocations: 164.5 kB / 492.3 MB, free: 7.027 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007871/0.1616, allocations: 4.243 MB / 496.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.162, allocations: 0.781 MB / 497.3 MB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001491/0.1622, allocations: 38.95 kB / 497.4 MB, free: 1.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.1624, allocations: 103.4 kB / 497.5 MB, free: 1.648 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1624, allocations: 0 / 497.5 MB, free: 1.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03538/0.1978, allocations: 8.924 MB / 0.4945 GB, free: 8.816 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.69, allocations: 24.03 kB / 0.4945 GB, free: 8.797 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)