Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.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.OneSourceThreeLinesOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesOneSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceThreeLinesOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesOneSource",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.001209/0.001209, allocations: 105.7 kB / 16.31 MB, free: 5.879 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.001164/0.001164, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.386/1.386, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04463/0.04463, allocations: 8.101 MB / 299.2 MB, free: 6.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.89 kB / 361.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1975, allocations: 51.52 MB / 413.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceThreeLinesOneSource): time 0.002297/0.1999, allocations: 1.831 MB / 415.2 MB, free: 23.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.2012, allocations: 1.551 MB / 416.7 MB, free: 22.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.043e-05/0.2013, allocations: 4 kB / 416.7 MB, free: 22.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002961/0.2016, allocations: 143.2 kB / 416.9 MB, free: 22.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002434/0.2018, allocations: 143.1 kB / 417 MB, free: 21.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.2029, allocations: 0.7897 MB / 417.8 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00023/0.2031, allocations: 302.5 kB / 418.1 MB, free: 20.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.2033, allocations: 109.7 kB / 418.2 MB, free: 20.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.295e-05/0.2034, allocations: 119.6 kB / 418.3 MB, free: 20.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.2035, allocations: 163.3 kB / 418.5 MB, free: 20.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.238e-05/0.2035, allocations: 24 kB / 418.5 MB, free: 20.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.2038, allocations: 187.8 kB / 418.7 MB, free: 20.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.539e-05/0.2038, allocations: 55.77 kB / 418.7 MB, free: 20.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.365e-05/0.2039, allocations: 143.3 kB / 418.9 MB, free: 20 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.2042, allocations: 425 kB / 419.3 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.2043, allocations: 4 kB / 419.3 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2043, allocations: 0 / 419.3 MB, free: 19.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.2043, allocations: 0 / 419.3 MB, free: 19.58 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002716/0.207, allocations: 0.9554 MB / 420.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.207, allocations: 15.83 kB / 420.3 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.177e-05/0.2071, allocations: 54.73 kB / 420.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.2072, allocations: 32.56 kB / 420.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002144/0.2074, allocations: 271.9 kB / 420.6 MB, free: 18.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.2074, allocations: 20.81 kB / 420.6 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.2075, allocations: 24.38 kB / 420.7 MB, free: 18.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004344/0.2079, allocations: 343.8 kB / 421 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-06/0.2079, allocations: 3.938 kB / 421 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.208, allocations: 12 kB / 421 MB, free: 17.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.208, allocations: 4 kB / 421 MB, free: 17.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003836/0.2084, allocations: 337.5 kB / 421.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.2097, allocations: 1.021 MB / 422.4 MB, free: 16.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004337/0.2101, allocations: 403.3 kB / 422.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.2104, allocations: 228.8 kB / 423 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.234e-05/0.2104, allocations: 4 kB / 423 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.2105, allocations: 46.48 kB / 423 MB, free: 15.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 1.714e-06/0.2105, allocations: 0 / 423 MB, free: 15.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002149/0.2126, allocations: 1.054 MB / 424.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.877e-05/0.2127, allocations: 51.41 kB / 424.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.2128, allocations: 235 kB / 424.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.2128, allocations: 33.7 kB / 424.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.2129, allocations: 148.6 kB / 424.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.215e-05/0.213, allocations: 114.2 kB / 424.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.2131, allocations: 86.11 kB / 424.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.169e-05/0.2131, allocations: 334.8 kB / 425.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.2134, allocations: 236.7 kB / 425.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.2137, allocations: 243.9 kB / 425.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005489/0.2142, allocations: 0.5054 MB / 426.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2142, allocations: 0 / 426.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001075/0.2153, allocations: 0.7247 MB / 426.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.2153, allocations: 4 kB / 426.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.2154, allocations: 0 / 426.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005868/0.2159, allocations: 158.4 kB / 426.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.2163, allocations: 87.88 kB / 427 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002679/0.219, allocations: 4.618 MB / 431.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.2193, allocations: 35.53 kB / 431.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.2193, allocations: 19.98 kB / 431.7 MB, free: 6.441 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.2194, allocations: 141.8 kB / 431.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.036e-05/0.2195, allocations: 27.72 kB / 431.9 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.2205, allocations: 0.5885 MB / 432.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2205, allocations: 4 kB / 432.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2205, allocations: 4 kB / 432.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2205, allocations: 11.92 kB / 432.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/0.2208, allocations: 464.9 kB / 432.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2209, allocations: 0 / 432.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.2211, allocations: 51.92 kB / 433 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005323/0.2216, allocations: 158.4 kB / 433.1 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.2217, allocations: 4 kB / 433.1 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002565/0.2242, allocations: 4.591 MB / 437.7 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2242, allocations: 3.984 kB / 437.7 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.2253, allocations: 0.635 MB / 438.4 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.75e-05/0.2254, allocations: 104.8 kB / 438.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.046e-05/0.2254, allocations: 8 kB / 438.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.2257, allocations: 4 kB / 438.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.759e-05/0.2257, allocations: 27.97 kB / 438.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.2258, allocations: 12 kB / 438.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.2259, allocations: 168.1 kB / 438.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2259, allocations: 0 / 438.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004406/0.2264, allocations: 119.9 kB / 438.8 MB, free: 14.79 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001349/0.2277, allocations: 1.183 MB / 440 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.2292, allocations: 0.8966 MB / 440.9 MB, free: 12.63 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2293, allocations: 0 / 440.9 MB, free: 12.63 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.2303, allocations: 0.5902 MB / 441.5 MB, free: 12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.2306, allocations: 22.52 kB / 441.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.2353, allocations: 3.563 MB / 445.1 MB, free: 8.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.2356, allocations: 0.761 MB / 445.8 MB, free: 7.539 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.2358, allocations: 34.25 kB / 445.8 MB, free: 7.504 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.2359, allocations: 79.41 kB / 445.9 MB, free: 7.426 MB / 318.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2359, allocations: 0 / 445.9 MB, free: 7.426 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.2641, allocations: 7.349 MB / 453.3 MB, free: 180 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.151/9.415, allocations: 0 / 453.3 MB, free: 180 kB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource_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_OneSourceThreeLinesOneSource.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe 2>&1)