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.0009047/0.0009048, allocations: 95.75 kB / 16.07 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 182.4 kB / 16.96 MB, free: 6.672 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.325/1.325, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1466/0.1466, allocations: 8.083 MB / 300.2 MB, free: 2.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003004/0.0003005, allocations: 8 kB / 363.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09882/0.09913, allocations: 52.51 MB / 416.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.001588/0.1008, allocations: 1.136 MB / 417.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.1025, allocations: 1.427 MB / 418.7 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.072e-05/0.1026, allocations: 4 kB / 418.7 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000272/0.1029, allocations: 91.61 kB / 418.8 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004165/0.1033, allocations: 147.4 kB / 418.9 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.1047, allocations: 0.8602 MB / 419.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.1049, allocations: 191.1 kB / 420 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.1051, allocations: 45.92 kB / 420 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.958e-05/0.1052, allocations: 71.7 kB / 420.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001465/0.1053, allocations: 95.59 kB / 420.2 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.499e-05/0.1054, allocations: 8 kB / 420.2 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003363/0.1057, allocations: 215.8 kB / 420.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.97e-05/0.1058, allocations: 43.7 kB / 420.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.022e-05/0.1059, allocations: 101.3 kB / 420.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.1063, allocations: 351 kB / 420.9 MB, free: 3.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1063, allocations: 7.938 kB / 420.9 MB, free: 3.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1063, allocations: 4 kB / 420.9 MB, free: 3.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.1063, allocations: 0 / 420.9 MB, free: 3.488 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.001909/0.1082, allocations: 0.6729 MB / 421.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.1083, allocations: 8.031 kB / 421.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.663e-05/0.1084, allocations: 54.73 kB / 421.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.521e-05/0.1084, allocations: 16.75 kB / 421.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.1087, allocations: 232 kB / 421.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.454e-05/0.1088, allocations: 75.72 kB / 421.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.1088, allocations: 12.38 kB / 421.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/0.1092, allocations: 222.5 kB / 422.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.1093, allocations: 3.938 kB / 422.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.1093, allocations: 15.98 kB / 422.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1093, allocations: 4 kB / 422.2 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003291/0.1096, allocations: 195.9 kB / 422.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001404/0.1111, allocations: 0.9241 MB / 423.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005549/0.1116, allocations: 238.8 kB / 423.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.1118, allocations: 120.8 kB / 423.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001281/0.1119, allocations: 89.08 kB / 423.7 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003197/0.1123, allocations: 167.3 kB / 423.9 MB, free: 240 kB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.703e-06/0.1123, allocations: 0 / 423.9 MB, free: 240 kB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.1511/0.2634, allocations: 0.6152 MB / 424.5 MB, free: 41.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.282e-05/0.2635, allocations: 56.14 kB / 424.6 MB, free: 41.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.2637, allocations: 173 kB / 424.7 MB, free: 41.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.2637, allocations: 32.33 kB / 424.8 MB, free: 41.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.237e-05/0.2637, allocations: 128 kB / 424.9 MB, free: 41.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.311e-05/0.2638, allocations: 68.08 kB / 425 MB, free: 41.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.113e-05/0.2638, allocations: 34.69 kB / 425 MB, free: 41.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.284e-05/0.2639, allocations: 329.5 kB / 425.3 MB, free: 41.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.2641, allocations: 115.2 kB / 425.4 MB, free: 41.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.2643, allocations: 159.6 kB / 425.6 MB, free: 41.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.2647, allocations: 281.2 kB / 425.9 MB, free: 41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.2647, allocations: 0 / 425.9 MB, free: 41 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009952/0.2657, allocations: 480.5 kB / 426.3 MB, free: 40.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2657, allocations: 6.688 kB / 426.3 MB, free: 40.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2657, allocations: 3.312 kB / 426.3 MB, free: 40.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008741/0.2666, allocations: 186.4 kB / 426.5 MB, free: 40.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.2668, allocations: 51.95 kB / 426.6 MB, free: 40.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005115/0.2673, allocations: 0.7217 MB / 427.3 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.2675, allocations: 29.41 kB / 427.3 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.2675, allocations: 12.56 kB / 427.3 MB, free: 40.41 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.0001028/0.2676, allocations: 134.7 kB / 427.5 MB, free: 40.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.2677, allocations: 25.25 kB / 427.5 MB, free: 40.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007024/0.2684, allocations: 384.2 kB / 427.9 MB, free: 40.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2684, allocations: 3.281 kB / 427.9 MB, free: 40.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2684, allocations: 2.906 kB / 427.9 MB, free: 40.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2684, allocations: 4.969 kB / 427.9 MB, free: 40.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.2687, allocations: 341.2 kB / 428.2 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2687, allocations: 3.562 kB / 428.2 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.2688, allocations: 20.77 kB / 428.2 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007667/0.2696, allocations: 194.4 kB / 428.4 MB, free: 40.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.2696, allocations: 3.312 kB / 428.4 MB, free: 40.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004871/0.2701, allocations: 0.7346 MB / 429.2 MB, free: 39.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2701, allocations: 7.453 kB / 429.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005914/0.2707, allocations: 367.5 kB / 429.5 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.169e-05/0.2708, allocations: 105.9 kB / 429.6 MB, free: 39.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.2708, allocations: 1.25 kB / 429.6 MB, free: 39.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.271, allocations: 23.64 kB / 429.7 MB, free: 39.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.211e-05/0.2711, allocations: 19.03 kB / 429.7 MB, free: 39.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.2711, allocations: 6.25 kB / 429.7 MB, free: 39.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.927e-05/0.2712, allocations: 136.2 kB / 429.8 MB, free: 39.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2712, allocations: 0 / 429.8 MB, free: 39.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.2715, allocations: 63.14 kB / 429.9 MB, free: 39.21 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 {(3,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008356/0.2723, allocations: 0.9287 MB / 430.8 MB, free: 38.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006793/0.273, allocations: 313.6 kB / 431.1 MB, free: 38.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.273, allocations: 0 / 431.1 MB, free: 38.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003974/0.2734, allocations: 161.7 kB / 431.3 MB, free: 38.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/0.2737, allocations: 17.84 kB / 431.3 MB, free: 38.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/0.2773, allocations: 2.706 MB / 434 MB, free: 37.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.2775, allocations: 0.7244 MB / 434.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000111/0.2776, allocations: 23 kB / 434.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.464e-05/0.2777, allocations: 53.47 kB / 434.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2777, allocations: 0 / 434.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01588/0.2935, allocations: 5.308 MB / 440.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/0.2938, allocations: 226.3 kB / 440.3 MB, free: 35.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.71/2.004, allocations: 3.875 kB / 440.3 MB, free: 35.83 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads.fmu > PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe 2>&1)