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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 93.91 kB / 20.52 MB, free: 1.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 216.9 kB / 23.82 MB, free: 4.48 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.449/1.449, allocations: 230.6 MB / 257.6 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo): time 0.03941/0.03941, allocations: 6.133 MB / 320.1 MB, free: 12.75 MB / 254.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 43.94 kB / 445.2 MB, free: 5.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1111, allocations: 55.02 MB / 0.4885 GB, free: 13.96 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.003474/0.1146, allocations: 1.851 MB / 0.4903 GB, free: 12.12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.1173, allocations: 1.621 MB / 0.4919 GB, free: 10.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002697/0.1176, allocations: 4 kB / 0.4919 GB, free: 10.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005689/0.1181, allocations: 139.3 kB / 0.492 GB, free: 10.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.1191, allocations: 226.7 kB / 0.4922 GB, free: 10.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002582/0.1217, allocations: 1.115 MB / 0.4933 GB, free: 9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007625/0.1225, allocations: 370.5 kB / 0.4937 GB, free: 8.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.1228, allocations: 72.23 kB / 0.4938 GB, free: 8.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004092/0.1232, allocations: 167.5 kB / 0.4939 GB, free: 8.395 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004511/0.1236, allocations: 195.2 kB / 0.4941 GB, free: 8.203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1237, allocations: 36 kB / 0.4941 GB, free: 8.168 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000736/0.1245, allocations: 295.8 kB / 0.4944 GB, free: 7.879 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000174/0.1246, allocations: 91.66 kB / 0.4945 GB, free: 7.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002719/0.1249, allocations: 139.3 kB / 0.4946 GB, free: 7.652 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001296/0.1262, allocations: 0.5607 MB / 0.4952 GB, free: 7.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.1262, allocations: 0 / 0.4952 GB, free: 7.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1262, allocations: 0 / 0.4952 GB, free: 7.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.1262, allocations: 0 / 0.4952 GB, free: 7.09 MB / 366.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.004565/0.1308, allocations: 1.051 MB / 0.4962 GB, free: 6 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1308, allocations: 8.031 kB / 0.4962 GB, free: 5.992 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.094e-05/0.1309, allocations: 8.844 kB / 0.4962 GB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.867e-05/0.1309, allocations: 74.66 kB / 0.4963 GB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.131, allocations: 44.7 kB / 0.4963 GB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003974/0.1314, allocations: 222.7 kB / 0.4966 GB, free: 5.617 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002976/0.1317, allocations: 229.1 kB / 0.4968 GB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.947e-05/0.1318, allocations: 28.38 kB / 0.4968 GB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/0.1336, allocations: 0.8516 MB / 0.4976 GB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1336, allocations: 0 / 0.4976 GB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.757e-05/0.1337, allocations: 15.98 kB / 0.4976 GB, free: 4.402 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.1337, allocations: 8 kB / 0.4977 GB, free: 4.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.1348, allocations: 465.4 kB / 0.4981 GB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.137, allocations: 1.095 MB / 0.4992 GB, free: 2.793 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.1386, allocations: 0.5921 MB / 0.4997 GB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006604/0.1393, allocations: 298.5 kB / 0.5 GB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.1394, allocations: 19.91 kB / 0.5 GB, free: 1.855 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005176/0.1399, allocations: 376.3 kB / 0.5004 GB, free: 1.445 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.794e-06/0.1399, allocations: 0 / 0.5004 GB, free: 1.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.003934/0.1439, allocations: 1.151 MB / 0.5015 GB, free: 292 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.144, allocations: 140.5 kB / 0.5017 GB, free: 120 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002875/0.1443, allocations: 231.1 kB / 0.5019 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.732e-05/0.1443, allocations: 33.7 kB / 0.5019 GB, free: 15.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.1444, allocations: 153 kB / 0.5021 GB, free: 15.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.1446, allocations: 127.1 kB / 0.5022 GB, free: 15.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.1447, allocations: 90.17 kB / 0.5023 GB, free: 15.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1449, allocations: 338.8 kB / 0.5026 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.1452, allocations: 204.9 kB / 0.5028 GB, free: 14.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.1457, allocations: 361.6 kB / 0.5031 GB, free: 14.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008182/0.1465, allocations: 0.5437 MB / 0.5037 GB, free: 13.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1465, allocations: 8 kB / 0.5037 GB, free: 13.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001737/0.1483, allocations: 0.7874 MB / 0.5044 GB, free: 13.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.1483, allocations: 4 kB / 0.5044 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1483, allocations: 4 kB / 0.5044 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002377/0.1507, allocations: 464.4 kB / 0.5049 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003528/0.151, allocations: 91.78 kB / 0.505 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.1527, allocations: 0.9075 MB / 0.5059 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/0.1531, allocations: 51.72 kB / 0.5059 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.1531, allocations: 16 kB / 0.5059 GB, free: 11.56 MB / 382.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.0002443/0.1534, allocations: 169.7 kB / 0.5061 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007592/0.1541, allocations: 253.4 kB / 0.5063 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.1553, allocations: 0.5641 MB / 0.5069 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.1554, allocations: 8 kB / 0.5069 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1554, allocations: 4 kB / 0.5069 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.1554, allocations: 7.984 kB / 0.5069 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002692/0.1581, allocations: 1.256 MB / 0.5081 GB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.1581, allocations: 3.984 kB / 0.5081 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.1585, allocations: 79.89 kB / 0.5082 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002233/0.1607, allocations: 464.3 kB / 0.5087 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.304e-05/0.1607, allocations: 15.94 kB / 0.5087 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001636/0.1624, allocations: 0.9082 MB / 0.5096 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1624, allocations: 0 / 0.5096 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002798/0.1652, allocations: 0.9934 MB / 0.5105 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.828e-05/0.1653, allocations: 39.67 kB / 0.5106 GB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.275e-05/0.1653, allocations: 11.94 kB / 0.5106 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004565/0.1658, allocations: 44.08 kB / 0.5106 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.846e-05/0.1659, allocations: 27.94 kB / 0.5106 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.1659, allocations: 16 kB / 0.5107 GB, free: 6.582 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001905/0.1661, allocations: 167.3 kB / 0.5108 GB, free: 6.418 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1661, allocations: 0 / 0.5108 GB, free: 6.418 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005359/0.1667, allocations: 111.9 kB / 0.5109 GB, free: 6.309 MB / 382.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.003255/0.1699, allocations: 1.568 MB / 0.5125 GB, free: 4.703 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.172, allocations: 0.6592 MB / 0.5131 GB, free: 4.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.172, allocations: 8.125 kB / 0.5131 GB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.1731, allocations: 312 kB / 0.5134 GB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008024/0.1739, allocations: 147.3 kB / 0.5135 GB, free: 3.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2122/0.3862, allocations: 4.244 MB / 0.5177 GB, free: 29.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.3863, allocations: 171.6 kB / 0.5179 GB, free: 29.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002283/0.3866, allocations: 39.78 kB / 0.5179 GB, free: 29.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.3868, allocations: 96.78 kB / 0.518 GB, free: 29.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.402e-06/0.3868, allocations: 0 / 0.518 GB, free: 29.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03209/0.4189, allocations: 9.331 MB / 0.5271 GB, free: 28.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/13.87, allocations: 6.688 kB / 0.5271 GB, free: 28.68 MB / 382.1 MB " [Timeout remaining time 646] (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 --stepSize=0.08 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.6006887529511] Failed to read output from testmodel.py, exit status != 0: 14.045334522030316 14.068967638 13.938516216 Calling exit ...