Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.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.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",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.001126/0.001126, allocations: 105.2 kB / 16.31 MB, free: 6.391 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.001152/0.001152, allocations: 189.8 kB / 17.24 MB, free: 5.922 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.355/1.355, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04727/0.04727, allocations: 8.095 MB / 299.2 MB, free: 6.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 59.91 kB / 361.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2182, allocations: 51.51 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002304/0.2206, allocations: 1.571 MB / 414.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.222, allocations: 1.555 MB / 416.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.414e-05/0.2221, allocations: 4 kB / 416.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003008/0.2224, allocations: 123.3 kB / 416.6 MB, free: 22.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002803/0.2228, allocations: 119.2 kB / 416.7 MB, free: 22.21 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation pv.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.224, allocations: 0.9064 MB / 417.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002291/0.2242, allocations: 250.8 kB / 417.9 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.2244, allocations: 80.22 kB / 417.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.303e-05/0.2245, allocations: 99.62 kB / 418 MB, free: 20.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.2246, allocations: 131.4 kB / 418.2 MB, free: 20.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.236e-05/0.2247, allocations: 20 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002868/0.225, allocations: 211.8 kB / 418.4 MB, free: 20.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.566e-05/0.225, allocations: 43.83 kB / 418.4 MB, free: 20.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.171e-05/0.2251, allocations: 123.4 kB / 418.6 MB, free: 20.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.2255, allocations: 397.1 kB / 418.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2255, allocations: 3.938 kB / 418.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2255, allocations: 0 / 418.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2255, allocations: 4 kB / 419 MB, free: 19.95 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002243/0.2278, allocations: 0.8069 MB / 419.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.2278, allocations: 11.89 kB / 419.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.201e-05/0.2279, allocations: 54.73 kB / 419.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.771e-05/0.228, allocations: 24.66 kB / 419.8 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.2282, allocations: 260.7 kB / 420.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.2282, allocations: 16.36 kB / 420.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.588e-05/0.2283, allocations: 20.38 kB / 420.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003809/0.2287, allocations: 261.7 kB / 420.4 MB, free: 18.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.2287, allocations: 3.938 kB / 420.4 MB, free: 18.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.805e-05/0.2287, allocations: 15.94 kB / 420.4 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.2287, allocations: 4 kB / 420.4 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.2291, allocations: 243.9 kB / 420.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.2303, allocations: 1.148 MB / 421.8 MB, free: 16.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003548/0.2306, allocations: 307.1 kB / 422.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.2309, allocations: 158.9 kB / 422.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.155e-05/0.2309, allocations: 16.22 kB / 422.3 MB, free: 16.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003723/0.2313, allocations: 219.5 kB / 422.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.744e-06/0.2313, allocations: 0 / 422.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002603/0.2339, allocations: 0.9249 MB / 423.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.234, allocations: 55.41 kB / 423.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.2341, allocations: 183 kB / 423.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.2342, allocations: 37.7 kB / 423.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.231e-05/0.2343, allocations: 124.9 kB / 423.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.109e-05/0.2343, allocations: 98.55 kB / 423.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.2344, allocations: 65.69 kB / 424 MB, free: 14.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.587e-05/0.2345, allocations: 330.8 kB / 424.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.2348, allocations: 148 kB / 424.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.235, allocations: 187.1 kB / 424.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004131/0.2354, allocations: 358.5 kB / 425 MB, free: 13.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2354, allocations: 0 / 425 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001414/0.2368, allocations: 0.6458 MB / 425.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.2368, allocations: 8 kB / 425.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.2369, allocations: 0 / 425.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001464/0.2383, allocations: 348.4 kB / 426 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.2385, allocations: 51.92 kB / 426 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003085/0.2416, allocations: 2.655 MB / 428.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.2418, allocations: 23.75 kB / 428.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.2419, allocations: 16 kB / 428.7 MB, free: 9.684 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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 {(6,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.242, allocations: 133.8 kB / 428.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.967e-05/0.242, allocations: 27.69 kB / 428.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.2435, allocations: 0.6563 MB / 429.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2436, allocations: 11.94 kB / 429.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.2436, allocations: 0 / 429.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2436, allocations: 4 kB / 429.5 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.2438, allocations: 393.2 kB / 429.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2438, allocations: 3.938 kB / 429.9 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.244, allocations: 39.92 kB / 430 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/0.2454, allocations: 336.5 kB / 430.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.2454, allocations: 8 kB / 430.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/0.2483, allocations: 2.621 MB / 432.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2483, allocations: 0 / 432.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.2497, allocations: 0.6345 MB / 433.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.2498, allocations: 104.8 kB / 433.7 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.353e-05/0.2498, allocations: 4 kB / 433.7 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.25, allocations: 23.08 kB / 433.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.514e-05/0.2501, allocations: 23.97 kB / 433.7 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.2501, allocations: 12 kB / 433.7 MB, free: 4.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.511e-05/0.2502, allocations: 135.7 kB / 433.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2502, allocations: 0 / 433.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000354/0.2506, allocations: 95.91 kB / 433.9 MB, free: 4.203 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 {(6,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001626/0.2522, allocations: 1.187 MB / 435.1 MB, free: 2.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.2536, allocations: 0.6311 MB / 435.8 MB, free: 2.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.2536, allocations: 4 kB / 435.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009192/0.2545, allocations: 455.4 kB / 436.2 MB, free: 1.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.2548, allocations: 23.98 kB / 436.2 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004845/0.2597, allocations: 3.201 MB / 439.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.26, allocations: 0.7454 MB / 440.2 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.2601, allocations: 33.91 kB / 440.2 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.2602, allocations: 71.41 kB / 440.3 MB, free: 13.68 MB / 318.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2602, allocations: 0 / 440.3 MB, free: 13.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.2882, allocations: 8.284 MB / 448.6 MB, free: 5.516 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.08, allocations: 8.703 kB / 448.6 MB, free: 5.516 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)