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.001464/0.001464, allocations: 105.2 kB / 16.45 MB, free: 6.438 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.001708/0.001709, allocations: 186.9 kB / 17.39 MB, free: 5.668 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.351/1.351, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04462/0.04462, allocations: 8.098 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 63.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1098, allocations: 51.52 MB / 465.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002709/0.1126, allocations: 1.451 MB / 466.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.1147, allocations: 1.45 MB / 468.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.1149, allocations: 4 kB / 468.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003973/0.1153, allocations: 111.4 kB / 468.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004983/0.1158, allocations: 151.2 kB / 468.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.1175, allocations: 0.902 MB / 469.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003742/0.1178, allocations: 195.1 kB / 469.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.118, allocations: 64.44 kB / 469.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.1182, allocations: 79.7 kB / 469.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.1184, allocations: 107.5 kB / 470 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.774e-05/0.1184, allocations: 16 kB / 470 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004627/0.1189, allocations: 223.8 kB / 470.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.827e-05/0.119, allocations: 47.83 kB / 470.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.1191, allocations: 87.52 kB / 470.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005863/0.1197, allocations: 352 kB / 470.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1197, allocations: 0 / 470.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.1197, allocations: 0 / 470.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1197, allocations: 7.938 kB / 470.7 MB, free: 13.41 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.002103/0.1218, allocations: 0.7018 MB / 471.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1219, allocations: 11.89 kB / 471.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.826e-05/0.1219, allocations: 46.73 kB / 471.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.837e-05/0.122, allocations: 24.66 kB / 471.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.1223, allocations: 234.8 kB / 471.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.528e-05/0.1224, allocations: 75.7 kB / 471.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/0.1224, allocations: 20.38 kB / 471.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/0.1228, allocations: 226.2 kB / 472 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1228, allocations: 0 / 472 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.1229, allocations: 4 kB / 472 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1229, allocations: 4 kB / 472 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003446/0.1232, allocations: 203.9 kB / 472.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.1247, allocations: 0.9163 MB / 473.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005405/0.1253, allocations: 226.9 kB / 473.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.1255, allocations: 120.8 kB / 473.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001363/0.1256, allocations: 85.09 kB / 473.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003807/0.126, allocations: 175.2 kB / 473.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.984e-06/0.126, allocations: 0 / 473.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001743/0.1278, allocations: 0.6151 MB / 474.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.1278, allocations: 51.41 kB / 474.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.128, allocations: 187.2 kB / 474.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.631e-05/0.1281, allocations: 29.7 kB / 474.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.606e-05/0.1281, allocations: 132.2 kB / 474.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.632e-05/0.1282, allocations: 70.91 kB / 474.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.375e-05/0.1283, allocations: 57.97 kB / 474.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1284, allocations: 326.8 kB / 475.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.1286, allocations: 116.5 kB / 475.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.1288, allocations: 169.3 kB / 475.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004044/0.1293, allocations: 272.2 kB / 475.8 MB, free: 8.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-06/0.1293, allocations: 7.938 kB / 475.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001031/0.1303, allocations: 474.4 kB / 476.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.1303, allocations: 7.938 kB / 476.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1304, allocations: 0 / 476.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000908/0.1313, allocations: 196.8 kB / 476.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.1314, allocations: 39.92 kB / 476.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006511/0.1321, allocations: 0.7279 MB / 477.2 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.1323, allocations: 31.72 kB / 477.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.1323, allocations: 8 kB / 477.2 MB, free: 6.516 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.0001279/0.1325, allocations: 137.8 kB / 477.4 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.552e-05/0.1325, allocations: 15.91 kB / 477.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000743/0.1333, allocations: 380 kB / 477.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.403e-06/0.1333, allocations: 7.984 kB / 477.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1333, allocations: 0 / 477.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.1333, allocations: 3.984 kB / 477.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003004/0.1336, allocations: 345.2 kB / 478.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1336, allocations: 8 kB / 478.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.1337, allocations: 19.98 kB / 478.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007625/0.1345, allocations: 192.7 kB / 478.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.1345, allocations: 4 kB / 478.3 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007137/0.1353, allocations: 0.7358 MB / 479.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1353, allocations: 0 / 479.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006446/0.1359, allocations: 379.1 kB / 479.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.588e-05/0.136, allocations: 92.86 kB / 479.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.136, allocations: 19.92 kB / 479.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.1362, allocations: 12 kB / 479.5 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.81e-05/0.1363, allocations: 23.83 kB / 479.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.1363, allocations: 4.094 kB / 479.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001185/0.1364, allocations: 139.9 kB / 479.7 MB, free: 3.887 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.313e-06/0.1364, allocations: 0 / 479.7 MB, free: 3.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.1367, allocations: 63.84 kB / 479.8 MB, free: 3.824 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.001037/0.1378, allocations: 0.932 MB / 480.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007561/0.1386, allocations: 303.8 kB / 481 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1386, allocations: 0 / 481 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005216/0.1391, allocations: 176.2 kB / 481.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.1394, allocations: 34.27 kB / 481.2 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003963/0.1434, allocations: 2.613 MB / 483.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.1436, allocations: 0.7249 MB / 484.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.458e-05/0.1437, allocations: 21.53 kB / 484.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.94e-05/0.1438, allocations: 55.42 kB / 484.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1438, allocations: 0 / 484.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02662/0.1705, allocations: 5.948 MB / 490.6 MB, free: 8.973 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.85, allocations: 18.22 kB / 490.6 MB, free: 8.957 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)