Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableLoad.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.001319/0.001319, allocations: 111.3 kB / 17.17 MB, free: 5.887 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.001381/0.001381, allocations: 208 kB / 20.14 MB, free: 2.934 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.497/1.497, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.04417/0.04417, allocations: 6.135 MB / 315.7 MB, free: 1.156 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.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 49.47 kB / 439.2 MB, free: 40.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/0.0907, allocations: 54.99 MB / 494.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.002833/0.09354, allocations: 2.451 MB / 496.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002714/0.09625, allocations: 2.738 MB / 499.4 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.0964, allocations: 8 kB / 499.4 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004623/0.09687, allocations: 167 kB / 499.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006601/0.09753, allocations: 338.2 kB / 499.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001649/0.09918, allocations: 1.28 MB / 0.4894 GB, free: 3.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.09954, allocations: 410.2 kB / 0.4898 GB, free: 3.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.0997, allocations: 92.39 kB / 0.4899 GB, free: 2.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.09981, allocations: 175.3 kB / 0.4901 GB, free: 2.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.1, allocations: 207.1 kB / 0.4903 GB, free: 2.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.1001, allocations: 35.94 kB / 0.4903 GB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004957/0.1005, allocations: 407.6 kB / 0.4907 GB, free: 2.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.712e-05/0.1006, allocations: 87.66 kB / 0.4908 GB, free: 2.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.1007, allocations: 190.9 kB / 0.491 GB, free: 1.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006605/0.1014, allocations: 0.6851 MB / 0.4916 GB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1014, allocations: 0 / 0.4916 GB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1014, allocations: 0 / 0.4916 GB, free: 1.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1014, allocations: 4 kB / 0.4917 GB, free: 1.219 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.004103/0.1055, allocations: 1.262 MB / 0.4929 GB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.1056, allocations: 12.03 kB / 0.4929 GB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.478e-05/0.1057, allocations: 58.73 kB / 0.493 GB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.1058, allocations: 52.64 kB / 0.493 GB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004352/0.1062, allocations: 323.6 kB / 0.4933 GB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.809e-05/0.1063, allocations: 58.81 kB / 0.4934 GB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.937e-05/0.1064, allocations: 35.94 kB / 0.4934 GB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000731/0.1071, allocations: 436.5 kB / 0.4938 GB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1071, allocations: 0 / 0.4938 GB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.269e-05/0.1071, allocations: 12 kB / 0.4938 GB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.1071, allocations: 8 kB / 0.4938 GB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006228/0.1078, allocations: 386 kB / 0.4942 GB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.1103, allocations: 1.34 MB / 0.4955 GB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009724/0.1112, allocations: 455 kB / 0.4959 GB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/0.1116, allocations: 216.8 kB / 0.4962 GB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.445e-05/0.1117, allocations: 19.98 kB / 0.4962 GB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006476/0.1123, allocations: 311.2 kB / 0.4965 GB, free: 12.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.944e-06/0.1123, allocations: 0 / 0.4965 GB, free: 12.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.004434/0.1168, allocations: 1.342 MB / 0.4978 GB, free: 10.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.569e-05/0.1169, allocations: 110.8 kB / 0.4979 GB, free: 10.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005023/0.1174, allocations: 295 kB / 0.4982 GB, free: 10.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.263e-05/0.1174, allocations: 37.7 kB / 0.4982 GB, free: 10.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.1176, allocations: 173 kB / 0.4984 GB, free: 10.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.1177, allocations: 146.7 kB / 0.4985 GB, free: 9.902 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002851/0.118, allocations: 98.23 kB / 0.4986 GB, free: 9.801 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.1182, allocations: 346.8 kB / 0.4989 GB, free: 9.453 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004341/0.1186, allocations: 253 kB / 0.4992 GB, free: 9.203 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004914/0.1191, allocations: 308.7 kB / 0.4995 GB, free: 8.895 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009837/0.1201, allocations: 0.5586 MB / 0.5 GB, free: 8.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.1201, allocations: 8.031 kB / 0.5 GB, free: 8.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002256/0.1224, allocations: 0.9017 MB / 0.5009 GB, free: 7.414 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.1224, allocations: 8 kB / 0.5009 GB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.1224, allocations: 3.938 kB / 0.5009 GB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00294/0.1253, allocations: 0.6005 MB / 0.5015 GB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003663/0.1257, allocations: 79.83 kB / 0.5016 GB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/0.1277, allocations: 1.072 MB / 0.5026 GB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004022/0.1281, allocations: 51.66 kB / 0.5027 GB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.1282, allocations: 12 kB / 0.5027 GB, free: 5.562 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (46): * Single equations (assignments): 45 * 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,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002476/0.1284, allocations: 162.2 kB / 0.5028 GB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.885e-05/0.1285, allocations: 43.69 kB / 0.5029 GB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.13, allocations: 0.7623 MB / 0.5036 GB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.13, allocations: 4 kB / 0.5036 GB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.13, allocations: 0 / 0.5036 GB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.13, allocations: 7.984 kB / 0.5036 GB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006918/0.1307, allocations: 0.5603 MB / 0.5042 GB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.1307, allocations: 0 / 0.5042 GB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.1309, allocations: 59.91 kB / 0.5042 GB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002719/0.1337, allocations: 0.5836 MB / 0.5048 GB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.06e-05/0.1337, allocations: 8 kB / 0.5048 GB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001847/0.1355, allocations: 1.086 MB / 0.5059 GB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1355, allocations: 0 / 0.5059 GB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.1368, allocations: 0.7173 MB / 0.5066 GB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002182/0.1371, allocations: 124.7 kB / 0.5067 GB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.075e-05/0.1371, allocations: 15.94 kB / 0.5067 GB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003283/0.1375, allocations: 19.98 kB / 0.5067 GB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.893e-05/0.1375, allocations: 28.39 kB / 0.5068 GB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.283e-05/0.1376, allocations: 16 kB / 0.5068 GB, free: 1.234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002702/0.1379, allocations: 209.9 kB / 0.507 GB, free: 1.031 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1379, allocations: 0 / 0.507 GB, free: 1.031 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005064/0.1384, allocations: 151.8 kB / 0.5071 GB, free: 0.8828 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (33): * Single equations (assignments): 32 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003392/0.1418, allocations: 1.634 MB / 0.5087 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.1437, allocations: 0.6616 MB / 0.5094 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1437, allocations: 0 / 0.5094 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.1449, allocations: 374.3 kB / 0.5097 GB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.1453, allocations: 58.39 kB / 0.5098 GB, free: 14.29 MB / 382.1 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007669/0.1529, allocations: 4.349 MB / 0.514 GB, free: 9.859 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.1534, allocations: 0.7888 MB / 0.5148 GB, free: 9.043 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000213/0.1536, allocations: 70.83 kB / 0.5149 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.1538, allocations: 127.4 kB / 0.515 GB, free: 8.848 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1538, allocations: 0 / 0.515 GB, free: 8.848 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2412/0.395, allocations: 12.28 MB / 0.527 GB, free: 12.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.03, allocations: 11.98 kB / 0.527 GB, free: 12.61 MB / 398.1 MB " [Timeout remaining time 646] (rm -f PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.VariableLoad_res.csv --start-time 0 --stop-time 3.15324e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12613 PowerSysPro_PowerSysPro_Examples_VariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.5125139390002] Failed to read output from testmodel.py, exit status != 0: 14.19748468499165 14.212551864 14.108250054 Calling exit ...