Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.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.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",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.001178/0.001178, allocations: 103.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.001087/0.001087, allocations: 188.5 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.461/1.461, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04706/0.04706, allocations: 8.094 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 64.14 kB / 361.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.233, allocations: 51.51 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.00274/0.2358, allocations: 2.446 MB / 415.8 MB, free: 23.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.2375, allocations: 1.707 MB / 417.5 MB, free: 21.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.2376, allocations: 8 kB / 417.5 MB, free: 21.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003786/0.238, allocations: 167 kB / 417.7 MB, free: 21.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003669/0.2384, allocations: 210.7 kB / 417.9 MB, free: 21.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.2398, allocations: 1.015 MB / 418.9 MB, free: 20 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003902/0.2402, allocations: 485.9 kB / 419.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.2404, allocations: 168.2 kB / 419.5 MB, free: 19.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001269/0.2406, allocations: 191.3 kB / 419.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.2408, allocations: 255 kB / 420 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.185e-05/0.2409, allocations: 44 kB / 420 MB, free: 18.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003352/0.2412, allocations: 259.8 kB / 420.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.029e-05/0.2413, allocations: 91.62 kB / 420.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.2414, allocations: 234.8 kB / 420.6 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004819/0.2419, allocations: 0.641 MB / 421.2 MB, free: 17.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2419, allocations: 0 / 421.2 MB, free: 17.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2419, allocations: 0 / 421.2 MB, free: 17.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.242, allocations: 3.938 kB / 421.2 MB, free: 17.65 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003361/0.2453, allocations: 1.179 MB / 422.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.2454, allocations: 15.83 kB / 422.4 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.715e-05/0.2454, allocations: 70.72 kB / 422.5 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002532/0.2457, allocations: 60.36 kB / 422.6 MB, free: 16.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.2461, allocations: 359.5 kB / 422.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.2461, allocations: 29.03 kB / 422.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.448e-05/0.2462, allocations: 36.38 kB / 423 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005689/0.2467, allocations: 450.5 kB / 423.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.2468, allocations: 3.938 kB / 423.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.795e-05/0.2468, allocations: 12 kB / 423.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.2468, allocations: 8 kB / 423.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005322/0.2474, allocations: 450.5 kB / 423.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.2493, allocations: 1.999 MB / 425.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008722/0.2501, allocations: 0.6849 MB / 426.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003183/0.2505, allocations: 297.2 kB / 426.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.884e-05/0.2505, allocations: 15.97 kB / 426.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004813/0.251, allocations: 472.5 kB / 427.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.933e-06/0.251, allocations: 0 / 427.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.005414/0.2565, allocations: 1.802 MB / 429.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.2565, allocations: 192.4 kB / 429.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.2568, allocations: 310.8 kB / 429.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.227e-05/0.2569, allocations: 41.7 kB / 429.7 MB, free: 8.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.653e-05/0.2569, allocations: 164.9 kB / 429.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.931e-05/0.257, allocations: 165.6 kB / 430 MB, free: 8.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.2572, allocations: 106.2 kB / 430.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.664e-05/0.2573, allocations: 342.8 kB / 430.4 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003389/0.2576, allocations: 277.1 kB / 430.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003727/0.258, allocations: 343.7 kB / 431 MB, free: 7.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006856/0.2648, allocations: 2.09 MB / 433.1 MB, free: 5.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.2649, allocations: 7.875 kB / 433.1 MB, free: 5.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002393/0.2673, allocations: 1.184 MB / 434.3 MB, free: 3.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/0.2673, allocations: 37.64 kB / 434.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2673, allocations: 0 / 434.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002054/0.2694, allocations: 0.5297 MB / 434.9 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002795/0.2697, allocations: 75.91 kB / 434.9 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004867/0.2746, allocations: 3.957 MB / 438.9 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.2751, allocations: 55.42 kB / 439 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.048e-05/0.2751, allocations: 24 kB / 439 MB, free: 15.17 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.line2.myFault.fault,line2.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im,line2.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 1 * 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,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0003709/0.2755, allocations: 220 kB / 439.2 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/0.2756, allocations: 35.62 kB / 439.2 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002805/0.2784, allocations: 1.137 MB / 440.4 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.2784, allocations: 4 kB / 440.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.2785, allocations: 7.938 kB / 440.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.2785, allocations: 0 / 440.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003322/0.2818, allocations: 1.838 MB / 442.2 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2818, allocations: 3.938 kB / 442.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.282, allocations: 55.91 kB / 442.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00214/0.2841, allocations: 0.4964 MB / 442.8 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.156e-05/0.2842, allocations: 23.98 kB / 442.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00568/0.2899, allocations: 3.909 MB / 446.7 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2899, allocations: 0 / 446.7 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002946/0.2929, allocations: 1.187 MB / 447.9 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.2931, allocations: 120.5 kB / 448 MB, free: 5.855 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.2932, allocations: 19.94 kB / 448 MB, free: 5.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003526/0.2935, allocations: 23.98 kB / 448 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.2937, allocations: 40.31 kB / 448.1 MB, free: 5.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.311e-05/0.2937, allocations: 16 kB / 448.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000246/0.294, allocations: 225.9 kB / 448.3 MB, free: 5.535 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.294, allocations: 0 / 448.3 MB, free: 5.535 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000689/0.2947, allocations: 191.8 kB / 448.5 MB, free: 5.348 MB / 318.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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,line2.myFault.Y.re,line2.myFault.Y.im,line2.myFault.fault) * Number of discrete states: 7 ($whenCondition4,line2.myFault.Y.im,line2.myFault.Y.re,$whenCondition3,$whenCondition2,line2.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003142/0.2978, allocations: 1.756 MB / 450.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001991/0.2999, allocations: 1 MB / 451.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.2999, allocations: 3.938 kB / 451.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.3011, allocations: 0.6765 MB / 451.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004261/0.3015, allocations: 48.81 kB / 452 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008755/0.3103, allocations: 5.294 MB / 457.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.3107, allocations: 0.8096 MB / 458.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001988/0.3109, allocations: 51.23 kB / 458.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.3111, allocations: 127.3 kB / 458.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3111, allocations: 0 / 458.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03631/0.3474, allocations: 15.04 MB / 473.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.25, allocations: 11.88 kB / 473.3 MB, free: 12.43 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad_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_OneSourceTwoLinesWithFaultOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)