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.001601/0.001601, allocations: 106.8 kB / 16.44 MB, free: 6.363 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.001251/0.001251, allocations: 198.3 kB / 17.38 MB, free: 5.789 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.428/1.428, 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.05427/0.05427, allocations: 8.097 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 67.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1029, allocations: 51.51 MB / 465.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.003511/0.1065, allocations: 2.058 MB / 467.5 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.109, allocations: 1.629 MB / 469.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.952e-05/0.1091, allocations: 4 kB / 469.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003877/0.1095, allocations: 151.1 kB / 469.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005786/0.1101, allocations: 218.8 kB / 469.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.1123, allocations: 1.225 MB / 470.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005328/0.1128, allocations: 378.5 kB / 471.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.1131, allocations: 123.9 kB / 471.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002485/0.1133, allocations: 159.5 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003038/0.1136, allocations: 195.2 kB / 471.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.078e-05/0.1137, allocations: 32 kB / 471.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000501/0.1142, allocations: 295.7 kB / 471.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.1144, allocations: 87.72 kB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.1146, allocations: 179.1 kB / 472.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007689/0.1153, allocations: 0.5528 MB / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1154, allocations: 0 / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1154, allocations: 0 / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1154, allocations: 0 / 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.004113/0.1195, allocations: 1.122 MB / 473.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.1196, allocations: 11.89 kB / 473.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.022e-05/0.1197, allocations: 66.72 kB / 473.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.978e-05/0.1198, allocations: 40.7 kB / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.1202, allocations: 300.2 kB / 474.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002356/0.1204, allocations: 104.5 kB / 474.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/0.1205, allocations: 28.38 kB / 474.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.1222, allocations: 0.7134 MB / 475.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1223, allocations: 0 / 475.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.783e-05/0.1223, allocations: 19.98 kB / 475.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.1223, allocations: 4 kB / 475.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.1235, allocations: 453.4 kB / 475.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.1259, allocations: 1.534 MB / 477.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001723/0.1276, allocations: 0.7075 MB / 477.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006589/0.1283, allocations: 322.4 kB / 478.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000177/0.1285, allocations: 97.23 kB / 478.2 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004868/0.129, allocations: 276.9 kB / 478.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.924e-06/0.129, allocations: 3.938 kB / 478.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003866/0.1329, allocations: 1.222 MB / 479.7 MB, free: 4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.133, allocations: 144.5 kB / 479.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.1333, allocations: 220.1 kB / 480.1 MB, free: 3.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.921e-05/0.1334, allocations: 37.7 kB / 480.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1335, allocations: 157 kB / 480.3 MB, free: 3.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.1336, allocations: 119 kB / 480.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.1338, allocations: 94.23 kB / 480.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1339, allocations: 338.8 kB / 480.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003332/0.1343, allocations: 205 kB / 481 MB, free: 2.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004615/0.1347, allocations: 336.5 kB / 481.3 MB, free: 2.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007959/0.1356, allocations: 0.5374 MB / 481.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1356, allocations: 4 kB / 481.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002043/0.1376, allocations: 0.7943 MB / 482.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.1376, allocations: 8 kB / 482.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.1377, allocations: 4 kB / 482.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002293/0.14, allocations: 460.4 kB / 483.1 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.1403, allocations: 91.83 kB / 483.2 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.142, allocations: 0.9075 MB / 484.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003718/0.1424, allocations: 43.73 kB / 484.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.04e-05/0.1425, allocations: 23.98 kB / 484.2 MB, free: 15.32 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.0002743/0.1428, allocations: 170.6 kB / 484.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007622/0.1435, allocations: 257.2 kB / 484.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.1448, allocations: 0.5748 MB / 485.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.1448, allocations: 8 kB / 485.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1448, allocations: 0 / 485.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.1448, allocations: 0 / 485.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.1477, allocations: 1.389 MB / 486.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1477, allocations: 4 kB / 486.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003897/0.1481, allocations: 75.89 kB / 486.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002136/0.1502, allocations: 461 kB / 487.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.393e-05/0.1503, allocations: 12 kB / 487.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.1519, allocations: 0.9153 MB / 488 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1519, allocations: 0 / 488 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002746/0.1547, allocations: 1.002 MB / 489 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.1548, allocations: 112.8 kB / 489.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.485e-05/0.1549, allocations: 11.94 kB / 489.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004253/0.1553, allocations: 47.95 kB / 489.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.61e-05/0.1554, allocations: 19.97 kB / 489.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.241e-05/0.1555, allocations: 16 kB / 489.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001937/0.1557, allocations: 171.1 kB / 489.4 MB, free: 9.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1557, allocations: 0 / 489.4 MB, free: 9.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005095/0.1562, allocations: 111.9 kB / 489.5 MB, free: 9.836 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.003196/0.1594, allocations: 1.572 MB / 491.1 MB, free: 8.223 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002134/0.1616, allocations: 0.7015 MB / 491.8 MB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1616, allocations: 0 / 491.8 MB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.1627, allocations: 332.6 kB / 492.1 MB, free: 7.195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008184/0.1636, allocations: 163.4 kB / 492.3 MB, free: 7.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008309/0.1719, allocations: 4.243 MB / 496.5 MB, free: 2.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005218/0.1724, allocations: 0.781 MB / 497.3 MB, free: 1.793 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002119/0.1727, allocations: 42.94 kB / 497.4 MB, free: 1.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002291/0.1729, allocations: 95.41 kB / 497.4 MB, free: 1.656 MB / 366.1 MB Notification: Performance of SimCode: time 1.312e-06/0.1729, allocations: 0 / 497.4 MB, free: 1.656 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05353/0.2264, allocations: 8.943 MB / 0.4945 GB, free: 8.809 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.25, allocations: 4.406 kB / 0.4945 GB, free: 8.805 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_QfURegulation_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1)