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.001279/0.001279, allocations: 114.9 kB / 17.88 MB, free: 5.051 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.001378/0.001378, allocations: 212.5 kB / 20.84 MB, free: 2.105 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.479/1.479, allocations: 230.6 MB / 254.2 MB, free: 15.1 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.03843/0.03843, allocations: 6.134 MB / 316.4 MB, free: 1.125 MB / 238.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.001436/0.001436, allocations: 46.83 kB / 439.9 MB, free: 40.81 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08754/0.08898, allocations: 54.98 MB / 494.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.002587/0.09156, allocations: 2.024 MB / 496.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001811/0.09337, allocations: 1.699 MB / 498.6 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.0935, allocations: 4 kB / 498.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003669/0.09387, allocations: 131.2 kB / 498.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000525/0.09439, allocations: 238.7 kB / 499 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001631/0.09603, allocations: 1.214 MB / 0.4885 GB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000441/0.09647, allocations: 374.5 kB / 0.4889 GB, free: 4.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.09664, allocations: 79.98 kB / 0.4889 GB, free: 4.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.09687, allocations: 171.4 kB / 0.4891 GB, free: 4.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000215/0.09708, allocations: 195.2 kB / 0.4893 GB, free: 4.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.421e-05/0.09712, allocations: 35.94 kB / 0.4893 GB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004393/0.09756, allocations: 299.8 kB / 0.4896 GB, free: 4.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.624e-05/0.09763, allocations: 79.73 kB / 0.4897 GB, free: 4.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.09774, allocations: 175.2 kB / 0.4898 GB, free: 3.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004914/0.09823, allocations: 0.5645 MB / 0.4904 GB, free: 3.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.09823, allocations: 0 / 0.4904 GB, free: 3.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09824, allocations: 0 / 0.4904 GB, free: 3.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.09825, allocations: 3.938 kB / 0.4904 GB, free: 3.312 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.003694/0.1019, allocations: 1.122 MB / 0.4915 GB, free: 2.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.102, allocations: 8.031 kB / 0.4915 GB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.526e-05/0.102, allocations: 8.75 kB / 0.4915 GB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.385e-05/0.1021, allocations: 62.72 kB / 0.4916 GB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.834e-05/0.1021, allocations: 44.7 kB / 0.4916 GB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002804/0.1024, allocations: 290.7 kB / 0.4919 GB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.1026, allocations: 108.5 kB / 0.492 GB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.157e-05/0.1027, allocations: 28.38 kB / 0.492 GB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.1041, allocations: 0.7132 MB / 0.4927 GB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.1041, allocations: 0 / 0.4927 GB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.113e-05/0.1041, allocations: 16 kB / 0.4927 GB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.1041, allocations: 4 kB / 0.4927 GB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008651/0.105, allocations: 445.5 kB / 0.4932 GB, free: 360 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.1071, allocations: 1.349 MB / 0.4945 GB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001746/0.1088, allocations: 0.6725 MB / 0.4951 GB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006386/0.1095, allocations: 282.5 kB / 0.4954 GB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001675/0.1096, allocations: 101.2 kB / 0.4955 GB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000439/0.1101, allocations: 273.4 kB / 0.4958 GB, free: 13.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.734e-06/0.1101, allocations: 0 / 0.4958 GB, free: 13.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.003913/0.114, allocations: 1.21 MB / 0.4969 GB, free: 12.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.1141, allocations: 140.5 kB / 0.4971 GB, free: 12.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.1144, allocations: 227 kB / 0.4973 GB, free: 11.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.636e-05/0.1144, allocations: 37.7 kB / 0.4973 GB, free: 11.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.1145, allocations: 161.2 kB / 0.4975 GB, free: 11.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.1147, allocations: 115 kB / 0.4976 GB, free: 11.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.1148, allocations: 98.23 kB / 0.4977 GB, free: 11.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.115, allocations: 334.8 kB / 0.498 GB, free: 11.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003476/0.1153, allocations: 205 kB / 0.4982 GB, free: 10.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000442/0.1158, allocations: 332.5 kB / 0.4985 GB, free: 10.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007841/0.1165, allocations: 0.5437 MB / 0.499 GB, free: 9.945 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1165, allocations: 0 / 0.499 GB, free: 9.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001715/0.1183, allocations: 0.7837 MB / 0.4998 GB, free: 9.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1183, allocations: 8 kB / 0.4998 GB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1183, allocations: 4 kB / 0.4998 GB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/0.1206, allocations: 464.4 kB / 0.5003 GB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003467/0.121, allocations: 91.83 kB / 0.5004 GB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.1226, allocations: 0.9036 MB / 0.5012 GB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.123, allocations: 51.66 kB / 0.5013 GB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.135e-05/0.123, allocations: 24 kB / 0.5013 GB, free: 7.59 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.0002572/0.1233, allocations: 165.7 kB / 0.5015 GB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007553/0.124, allocations: 253.8 kB / 0.5017 GB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.1252, allocations: 0.5629 MB / 0.5023 GB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.1252, allocations: 8 kB / 0.5023 GB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1252, allocations: 7.938 kB / 0.5023 GB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.1252, allocations: 4 kB / 0.5023 GB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.128, allocations: 1.362 MB / 0.5036 GB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.128, allocations: 3.938 kB / 0.5036 GB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004051/0.1284, allocations: 87.86 kB / 0.5037 GB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002101/0.1305, allocations: 456.3 kB / 0.5041 GB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.1306, allocations: 8 kB / 0.5041 GB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.1322, allocations: 0.9193 MB / 0.505 GB, free: 3.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.1322, allocations: 0 / 0.505 GB, free: 3.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002682/0.1349, allocations: 0.9893 MB / 0.506 GB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.135, allocations: 116.8 kB / 0.5061 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.848e-05/0.1351, allocations: 7.938 kB / 0.5061 GB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004285/0.1355, allocations: 47.95 kB / 0.5062 GB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.912e-05/0.1356, allocations: 23.97 kB / 0.5062 GB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/0.1356, allocations: 16 kB / 0.5062 GB, free: 2.418 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.1358, allocations: 163.3 kB / 0.5064 GB, free: 2.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1358, allocations: 0 / 0.5064 GB, free: 2.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004763/0.1363, allocations: 111.9 kB / 0.5065 GB, free: 2.148 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.003147/0.1394, allocations: 1.562 MB / 0.508 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.1415, allocations: 0.6622 MB / 0.5086 GB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1415, allocations: 0 / 0.5086 GB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.1426, allocations: 305.2 kB / 0.5089 GB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008306/0.1435, allocations: 154.3 kB / 0.5091 GB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008178/0.1517, allocations: 4.219 MB / 0.5132 GB, free: 11.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/0.1521, allocations: 0.781 MB / 0.514 GB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001569/0.1523, allocations: 42.94 kB / 0.514 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001844/0.1524, allocations: 107.3 kB / 0.5141 GB, free: 10.08 MB / 382.1 MB Notification: Performance of SimCode: time 1.273e-06/0.1524, allocations: 3.938 kB / 0.5141 GB, free: 10.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02975/0.1822, allocations: 9.055 MB / 0.523 GB, free: 1.133 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.67, allocations: 7.109 kB / 0.523 GB, free: 1.129 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.397969259007368] Failed to read output from testmodel.py, exit status != 0: 12.82521750300657 12.848890799 12.74741604 Calling exit ...