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.005551/0.005551, allocations: 94.23 kB / 15.92 MB, free: 6.277 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.001353/0.001353, allocations: 193.9 kB / 16.83 MB, free: 6.191 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.242/1.242, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1755/0.1755, allocations: 8.078 MB / 298.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 59.91 kB / 361.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1102, allocations: 51.52 MB / 412.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002971/0.1133, allocations: 1.499 MB / 414.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.1153, allocations: 1.434 MB / 415.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001932/0.1155, allocations: 0 / 415.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003637/0.1159, allocations: 107.6 kB / 415.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000429/0.1163, allocations: 147.4 kB / 415.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.1178, allocations: 0.8873 MB / 416.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002728/0.1181, allocations: 179.2 kB / 416.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.1183, allocations: 41.94 kB / 416.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.535e-05/0.1184, allocations: 79.7 kB / 417 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001642/0.1185, allocations: 107.5 kB / 417.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.1186, allocations: 12 kB / 417.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003943/0.119, allocations: 211.8 kB / 417.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.427e-05/0.119, allocations: 43.83 kB / 417.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.518e-05/0.1191, allocations: 79.53 kB / 417.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005631/0.1197, allocations: 347 kB / 417.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1197, allocations: 7.984 kB / 417.8 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1197, allocations: 0 / 417.8 MB, free: 4.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1198, allocations: 4 kB / 417.8 MB, free: 4.887 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.002089/0.1218, allocations: 0.7056 MB / 418.5 MB, free: 4.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.1219, allocations: 8.031 kB / 418.5 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.243e-05/0.122, allocations: 54.73 kB / 418.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.344e-05/0.122, allocations: 24.66 kB / 418.6 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.1223, allocations: 232 kB / 418.8 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.523e-05/0.1224, allocations: 75.7 kB / 418.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.1225, allocations: 16.38 kB / 418.9 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003823/0.1228, allocations: 214.5 kB / 419.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1229, allocations: 3.938 kB / 419.1 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.1229, allocations: 12 kB / 419.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1229, allocations: 4 kB / 419.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003359/0.1233, allocations: 195.9 kB / 419.3 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.1247, allocations: 0.9163 MB / 420.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005566/0.1253, allocations: 234.9 kB / 420.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.1255, allocations: 116.7 kB / 420.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001779/0.1257, allocations: 93.09 kB / 420.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003672/0.1261, allocations: 167.3 kB / 420.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.1261, allocations: 0 / 420.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001724/0.1278, allocations: 0.6054 MB / 421.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.1279, allocations: 55.41 kB / 421.5 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.1281, allocations: 179.2 kB / 421.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.1281, allocations: 33.7 kB / 421.7 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.504e-05/0.1282, allocations: 128.2 kB / 421.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.344e-05/0.1283, allocations: 74.86 kB / 421.9 MB, free: 488 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.749e-05/0.1284, allocations: 57.97 kB / 422 MB, free: 424 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.423e-05/0.1285, allocations: 326.8 kB / 422.3 MB, free: 88 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.1287, allocations: 120.5 kB / 422.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.1289, allocations: 161.4 kB / 422.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004096/0.1293, allocations: 280.2 kB / 422.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1293, allocations: 3.938 kB / 422.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001054/0.1304, allocations: 470 kB / 423.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1304, allocations: 8 kB / 423.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1304, allocations: 0 / 423.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000922/0.1314, allocations: 200.7 kB / 423.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.1315, allocations: 43.92 kB / 423.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007123/0.1323, allocations: 0.7241 MB / 424.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.1325, allocations: 23.75 kB / 424.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.1325, allocations: 15.94 kB / 424.3 MB, free: 14 MB / 366.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.0001297/0.1326, allocations: 130.9 kB / 424.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.1327, allocations: 15.81 kB / 424.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007463/0.1334, allocations: 388 kB / 424.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1335, allocations: 4 kB / 424.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1335, allocations: 0 / 424.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1335, allocations: 3.984 kB / 424.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000309/0.1338, allocations: 337.2 kB / 425.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1338, allocations: 0 / 425.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.1339, allocations: 32.02 kB / 425.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008031/0.1347, allocations: 192.7 kB / 425.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.1348, allocations: 4 kB / 425.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006056/0.1354, allocations: 0.7357 MB / 426.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.1354, allocations: 0 / 426.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000663/0.1361, allocations: 387.9 kB / 426.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.618e-05/0.1361, allocations: 92.91 kB / 426.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.1362, allocations: 7.938 kB / 426.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.1364, allocations: 15.98 kB / 426.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.841e-05/0.1364, allocations: 19.84 kB / 426.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.1365, allocations: 4 kB / 426.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.1366, allocations: 136.9 kB / 426.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1366, allocations: 0 / 426.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000303/0.1369, allocations: 67.84 kB / 426.9 MB, free: 11.32 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,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.001/0.1379, allocations: 0.926 MB / 427.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007271/0.1387, allocations: 311.1 kB / 428.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1387, allocations: 0 / 428.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004293/0.1391, allocations: 156.1 kB / 428.2 MB, free: 9.906 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.1394, allocations: 17.72 kB / 428.3 MB, free: 9.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003969/0.1434, allocations: 2.683 MB / 430.9 MB, free: 7.098 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.1436, allocations: 0.7285 MB / 431.7 MB, free: 6.344 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.1437, allocations: 17.53 kB / 431.7 MB, free: 6.328 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.745e-05/0.1438, allocations: 51.42 kB / 431.7 MB, free: 6.277 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1438, allocations: 0 / 431.7 MB, free: 6.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6499/0.7937, allocations: 5.418 MB / 437.2 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001984/0.7939, allocations: 213.8 kB / 437.4 MB, free: 0.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.819, allocations: 4 kB / 437.4 MB, free: 0.7031 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 & /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)