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.001262/0.001262, allocations: 100.5 kB / 16.45 MB, free: 6.43 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.001272/0.001272, allocations: 188.9 kB / 17.39 MB, free: 5.688 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.233/1.233, 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.04402/0.04402, allocations: 8.097 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 63.91 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08265/0.08378, allocations: 51.51 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002405/0.08622, allocations: 1.463 MB / 467 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.0879, allocations: 1.438 MB / 468.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.114e-05/0.08798, allocations: 4 kB / 468.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003113/0.08831, allocations: 119.4 kB / 468.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003786/0.08869, allocations: 159.1 kB / 468.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001425/0.09013, allocations: 0.8945 MB / 469.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.09044, allocations: 195.1 kB / 469.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.09059, allocations: 61.84 kB / 469.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.33e-05/0.09068, allocations: 75.72 kB / 469.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.09085, allocations: 111.6 kB / 470 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.09088, allocations: 19.94 kB / 470 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003888/0.09128, allocations: 227.8 kB / 470.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.985e-05/0.09134, allocations: 39.83 kB / 470.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.444e-05/0.09144, allocations: 91.52 kB / 470.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004505/0.0919, allocations: 354.9 kB / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09191, allocations: 0 / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.09192, allocations: 0 / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.09193, allocations: 3.938 kB / 470.7 MB, free: 13.42 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001944/0.09388, allocations: 0.7089 MB / 471.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.09393, allocations: 15.89 kB / 471.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.927e-05/0.09401, allocations: 46.73 kB / 471.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.135e-05/0.0941, allocations: 24.8 kB / 471.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.09444, allocations: 234.8 kB / 471.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.09456, allocations: 71.72 kB / 471.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.397e-05/0.09461, allocations: 16.38 kB / 471.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004137/0.09503, allocations: 230.2 kB / 472.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.09506, allocations: 0 / 472.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.429e-05/0.09509, allocations: 4 kB / 472.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.0951, allocations: 4 kB / 472.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003291/0.09543, allocations: 199.9 kB / 472.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.09681, allocations: 0.9203 MB / 473.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000534/0.09736, allocations: 238.9 kB / 473.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.09754, allocations: 112.8 kB / 473.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/0.09766, allocations: 89.08 kB / 473.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003496/0.09802, allocations: 171.3 kB / 473.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.09804, allocations: 4 kB / 473.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001704/0.09974, allocations: 0.6116 MB / 474.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.09979, allocations: 55.41 kB / 474.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000176/0.09997, allocations: 175.3 kB / 474.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.1, allocations: 37.69 kB / 474.6 MB, free: 9.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.44e-05/0.1001, allocations: 132.4 kB / 474.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.013e-05/0.1002, allocations: 79.33 kB / 474.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.969e-05/0.1003, allocations: 53.97 kB / 474.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1004, allocations: 330.8 kB / 475.2 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.1006, allocations: 116.5 kB / 475.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.1008, allocations: 157.3 kB / 475.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003927/0.1012, allocations: 280.2 kB / 475.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1012, allocations: 3.938 kB / 475.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001/0.1022, allocations: 474.6 kB / 476.2 MB, free: 7.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.1023, allocations: 11.98 kB / 476.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1023, allocations: 7.938 kB / 476.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008795/0.1031, allocations: 184.7 kB / 476.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.1033, allocations: 47.92 kB / 476.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006481/0.104, allocations: 0.7241 MB / 477.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.1042, allocations: 27.78 kB / 477.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.449e-05/0.1042, allocations: 12 kB / 477.2 MB, free: 6.508 MB / 350.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 0.0001247/0.1044, allocations: 137.8 kB / 477.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.542e-05/0.1044, allocations: 19.91 kB / 477.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007211/0.1051, allocations: 385.7 kB / 477.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1051, allocations: 4 kB / 477.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1051, allocations: 0 / 477.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1052, allocations: 0 / 477.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002879/0.1054, allocations: 353.1 kB / 478.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.1055, allocations: 0 / 478.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.1056, allocations: 23.98 kB / 478.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007521/0.1063, allocations: 192.7 kB / 478.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.1064, allocations: 8 kB / 478.3 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007217/0.1071, allocations: 0.7319 MB / 479.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1071, allocations: 4.078 kB / 479.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006446/0.1078, allocations: 380.4 kB / 479.5 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.381e-05/0.1078, allocations: 93 kB / 479.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.847e-05/0.1079, allocations: 7.938 kB / 479.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.108, allocations: 19.97 kB / 479.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.848e-05/0.1081, allocations: 27.78 kB / 479.6 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.1081, allocations: 8 kB / 479.6 MB, free: 4.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001232/0.1083, allocations: 136 kB / 479.7 MB, free: 3.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1083, allocations: 3.938 kB / 479.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.1086, allocations: 63.89 kB / 479.8 MB, free: 3.805 MB / 350.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.0009952/0.1096, allocations: 0.9254 MB / 480.7 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007513/0.1103, allocations: 303.8 kB / 481 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1103, allocations: 0 / 481 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005019/0.1109, allocations: 174.3 kB / 481.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.1111, allocations: 31.86 kB / 481.2 MB, free: 2.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003756/0.1149, allocations: 2.629 MB / 483.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.1151, allocations: 0.721 MB / 484.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.96e-05/0.1152, allocations: 21.53 kB / 484.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.649e-05/0.1153, allocations: 55.41 kB / 484.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1153, allocations: 0 / 484.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.1394, allocations: 5.795 MB / 490.5 MB, free: 9.098 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.4, allocations: 7.875 kB / 490.5 MB, free: 9.09 MB / 366.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)