Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.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.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",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.001719/0.001719, allocations: 102.4 kB / 16.31 MB, free: 5.879 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.002009/0.002009, allocations: 186.5 kB / 17.24 MB, free: 5.539 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.374/1.374, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.053/0.053, allocations: 8.098 MB / 299.2 MB, free: 6.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.91 kB / 361.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.19, allocations: 51.51 MB / 413.4 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002239/0.1922, allocations: 1.44 MB / 414.8 MB, free: 24.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.1936, allocations: 1.454 MB / 416.2 MB, free: 22.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.698e-05/0.1937, allocations: 0 / 416.2 MB, free: 22.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.194, allocations: 107.5 kB / 416.3 MB, free: 22.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003477/0.1944, allocations: 155.2 kB / 416.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.1955, allocations: 0.9052 MB / 417.4 MB, free: 21.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.1957, allocations: 187.2 kB / 417.6 MB, free: 21.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.1959, allocations: 55.89 kB / 417.6 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.114e-05/0.1959, allocations: 87.64 kB / 417.7 MB, free: 21.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.1961, allocations: 103.6 kB / 417.8 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.954e-05/0.1961, allocations: 16 kB / 417.8 MB, free: 21.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002785/0.1964, allocations: 219.8 kB / 418.1 MB, free: 20.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.499e-05/0.1964, allocations: 39.83 kB / 418.1 MB, free: 20.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.802e-05/0.1965, allocations: 95.52 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.1968, allocations: 355 kB / 418.5 MB, free: 20.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1968, allocations: 4 kB / 418.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1968, allocations: 4 kB / 418.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1968, allocations: 3.938 kB / 418.6 MB, free: 20.36 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001772/0.1986, allocations: 0.7054 MB / 419.3 MB, free: 19.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.1987, allocations: 15.89 kB / 419.3 MB, free: 19.58 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.285e-05/0.1987, allocations: 50.73 kB / 419.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.69e-05/0.1988, allocations: 20.75 kB / 419.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.199, allocations: 240 kB / 419.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.668e-05/0.1991, allocations: 67.95 kB / 419.6 MB, free: 19.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.1991, allocations: 16.38 kB / 419.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.1994, allocations: 222.3 kB / 419.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1994, allocations: 0 / 419.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.1995, allocations: 11.94 kB / 419.9 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1995, allocations: 4 kB / 419.9 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002717/0.1997, allocations: 199.9 kB / 420.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.2009, allocations: 0.9126 MB / 421 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004941/0.2014, allocations: 226.9 kB / 421.2 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.2015, allocations: 128.7 kB / 421.3 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.903e-05/0.2017, allocations: 85.09 kB / 421.4 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.2019, allocations: 165 kB / 421.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.502e-06/0.202, allocations: 0 / 421.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001553/0.2035, allocations: 0.6141 MB / 422.2 MB, free: 16.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.799e-05/0.2035, allocations: 51.41 kB / 422.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.2037, allocations: 184.9 kB / 422.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.2037, allocations: 29.7 kB / 422.5 MB, free: 16.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.2038, allocations: 132.1 kB / 422.6 MB, free: 16.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.947e-05/0.2038, allocations: 67 kB / 422.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-05/0.2039, allocations: 57.97 kB / 422.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.109e-05/0.2039, allocations: 330.8 kB / 423 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.2041, allocations: 116.5 kB / 423.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.2043, allocations: 161.3 kB / 423.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003331/0.2046, allocations: 284.1 kB / 423.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2046, allocations: 3.938 kB / 423.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009324/0.2056, allocations: 478.5 kB / 424.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.2056, allocations: 7.938 kB / 424.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.2056, allocations: 0 / 424.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008567/0.2065, allocations: 196.7 kB / 424.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.2067, allocations: 35.98 kB / 424.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004858/0.2071, allocations: 0.7357 MB / 425 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.2073, allocations: 31.72 kB / 425.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.2074, allocations: 8 kB / 425.1 MB, free: 13.46 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (load.degradedMode,$PRE.load.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {(3,5)} Notification: Performance of prepare postOptimizeDAE: time 9.201e-05/0.2075, allocations: 133.8 kB / 425.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.267e-05/0.2075, allocations: 19.75 kB / 425.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006558/0.2082, allocations: 394.4 kB / 425.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2082, allocations: 4 kB / 425.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2082, allocations: 0 / 425.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2082, allocations: 3.984 kB / 425.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002079/0.2084, allocations: 341.2 kB / 425.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2084, allocations: 0 / 425.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.969e-05/0.2085, allocations: 23.98 kB / 426 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007172/0.2093, allocations: 200.7 kB / 426.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.2093, allocations: 4 kB / 426.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005729/0.2099, allocations: 0.7437 MB / 426.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2099, allocations: 0 / 426.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005653/0.2105, allocations: 373.4 kB / 427.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.57e-05/0.2105, allocations: 100.8 kB / 427.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.668e-05/0.2105, allocations: 11.92 kB / 427.4 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.2107, allocations: 12 kB / 427.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.541e-05/0.2108, allocations: 15.97 kB / 427.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.2108, allocations: 8 kB / 427.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.169e-05/0.2109, allocations: 131.9 kB / 427.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2109, allocations: 0 / 427.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002758/0.2112, allocations: 56 kB / 427.6 MB, free: 10.78 MB / 302.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,load.degradedMode) * Number of discrete states: 1 (load.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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 {(4,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007662/0.212, allocations: 0.9346 MB / 428.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006631/0.2126, allocations: 311.6 kB / 428.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2126, allocations: 96 / 428.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004868/0.2131, allocations: 186.9 kB / 429 MB, free: 9.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.2134, allocations: 23.98 kB / 429 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00323/0.2166, allocations: 2.605 MB / 431.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.2167, allocations: 0.7285 MB / 432.4 MB, free: 5.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.703e-05/0.2168, allocations: 21.62 kB / 432.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.206e-05/0.2169, allocations: 59.41 kB / 432.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2169, allocations: 4 kB / 432.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02098/0.2379, allocations: 5.69 MB / 438.2 MB, free: 144 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.21, allocations: 9.844 kB / 438.2 MB, free: 140 kB / 302.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads_res.csv --start-time 0 --stop-time 400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.16 PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads.fmu > PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe 2>&1)