Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneTransfoOneLineOneTransfoThreeLines.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.OneSourceOneTransfoOneLineOneTransfoThreeLines,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneTransfoOneLineOneTransfoThreeLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceOneTransfoOneLineOneTransfoThreeLines,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneTransfoOneLineOneTransfoThreeLines",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.001486/0.001486, allocations: 104.1 kB / 16.31 MB, free: 6.359 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.001737/0.001737, allocations: 186.6 kB / 17.24 MB, free: 5.879 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.322/1.322, 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.05595/0.05595, allocations: 8.09 MB / 299.2 MB, free: 6.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 67.91 kB / 361.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.227, allocations: 51.52 MB / 413.4 MB, free: 25.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneTransfoOneLineOneTransfoThreeLines): time 0.003335/0.2304, allocations: 2.785 MB / 416.1 MB, free: 22.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.2324, allocations: 1.76 MB / 417.9 MB, free: 20.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.2326, allocations: 8 kB / 417.9 MB, free: 20.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003846/0.2329, allocations: 178.9 kB / 418.1 MB, free: 20.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000453/0.2334, allocations: 258.4 kB / 418.3 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001597/0.235, allocations: 1.116 MB / 419.4 MB, free: 19.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004785/0.2355, allocations: 0.5093 MB / 420 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.2357, allocations: 152.3 kB / 420.1 MB, free: 18.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.2359, allocations: 215.2 kB / 420.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.2361, allocations: 262.9 kB / 420.6 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.491e-05/0.2362, allocations: 40 kB / 420.6 MB, free: 18.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00038/0.2365, allocations: 263.7 kB / 420.9 MB, free: 18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-05/0.2366, allocations: 99.59 kB / 421 MB, free: 17.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.2368, allocations: 250.7 kB / 421.2 MB, free: 17.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005178/0.2373, allocations: 0.6659 MB / 421.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2373, allocations: 7.938 kB / 421.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2373, allocations: 0 / 421.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.2374, allocations: 4 kB / 421.9 MB, free: 16.97 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.00576/0.2431, allocations: 1.646 MB / 423.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2432, allocations: 15.88 kB / 423.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.971e-05/0.2433, allocations: 70.72 kB / 423.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.2434, allocations: 64.28 kB / 423.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.2437, allocations: 360 kB / 424 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.2437, allocations: 29.38 kB / 424.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.2438, allocations: 48.36 kB / 424.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007582/0.2445, allocations: 0.6047 MB / 424.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2446, allocations: 0 / 424.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.943e-05/0.2446, allocations: 16 kB / 424.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.2446, allocations: 12 kB / 424.7 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006628/0.2453, allocations: 0.5506 MB / 425.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002523/0.2478, allocations: 2.219 MB / 427.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.2489, allocations: 0.8887 MB / 428.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004461/0.2493, allocations: 394.5 kB / 428.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001285/0.2506, allocations: 1.345 MB / 430.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.2507, allocations: 39 kB / 430.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 2.114e-06/0.2507, allocations: 3.938 kB / 430.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.009273/0.2599, allocations: 2.654 MB / 432.8 MB, free: 5.527 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.26, allocations: 115.1 kB / 432.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.2603, allocations: 341.4 kB / 433.3 MB, free: 5.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.64e-05/0.2604, allocations: 41.7 kB / 433.3 MB, free: 5.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.168e-05/0.2605, allocations: 201 kB / 433.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.2606, allocations: 177.4 kB / 433.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/0.2608, allocations: 154.5 kB / 433.8 MB, free: 4.469 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.006e-05/0.2609, allocations: 346.8 kB / 434.2 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004748/0.2614, allocations: 401.9 kB / 434.6 MB, free: 3.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005245/0.2619, allocations: 0.5089 MB / 435.1 MB, free: 3.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.2629, allocations: 0.9414 MB / 436 MB, free: 2.215 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.263, allocations: 3.938 kB / 436 MB, free: 2.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00415/0.2671, allocations: 1.785 MB / 437.8 MB, free: 424 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2671, allocations: 4 kB / 437.8 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.2672, allocations: 4 kB / 437.8 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004716/0.2719, allocations: 1.101 MB / 438.9 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004874/0.2724, allocations: 111.9 kB / 439 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009053/0.2815, allocations: 5.242 MB / 444.3 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005829/0.2821, allocations: 79.2 kB / 444.3 MB, free: 9.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.306e-05/0.2821, allocations: 28 kB / 444.4 MB, free: 9.703 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (70): * Single equations (assignments): 69 * 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): 1 system {(10,14,58.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002442/0.2824, allocations: 181.8 kB / 444.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.2825, allocations: 47.42 kB / 444.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004586/0.2871, allocations: 1.62 MB / 446.2 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/0.2871, allocations: 8 kB / 446.2 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.2871, allocations: 4 kB / 446.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.2872, allocations: 7.922 kB / 446.2 MB, free: 7.816 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007536/0.2879, allocations: 0.6658 MB / 446.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2879, allocations: 0 / 446.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002947/0.2882, allocations: 71.91 kB / 447 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004644/0.2929, allocations: 1.029 MB / 448 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.592e-05/0.293, allocations: 12 kB / 448 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009085/0.3021, allocations: 5.199 MB / 453.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3021, allocations: 0 / 453.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004688/0.3068, allocations: 1.631 MB / 454.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.307, allocations: 124.5 kB / 455 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.102e-05/0.3071, allocations: 15.91 kB / 455 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004258/0.3075, allocations: 30.11 kB / 455 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.3077, allocations: 48.8 kB / 455.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.855e-05/0.3077, allocations: 27.98 kB / 455.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002341/0.308, allocations: 223.2 kB / 455.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.308, allocations: 0 / 455.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008015/0.3088, allocations: 235.9 kB / 455.5 MB, free: 14.29 MB / 334.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 (39): * Single equations (assignments): 38 * 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): 1 system {(10,14,58.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004777/0.3136, allocations: 2.196 MB / 457.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003214/0.3168, allocations: 1.357 MB / 459.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.3168, allocations: 4.188 kB / 459.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002146/0.319, allocations: 0.8145 MB / 459.9 MB, free: 9.871 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004404/0.3194, allocations: 41.42 kB / 459.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01354/0.333, allocations: 6.701 MB / 466.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000483/0.3335, allocations: 0.8293 MB / 467.5 MB, free: 2.141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002232/0.3337, allocations: 59.25 kB / 467.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.334, allocations: 151.4 kB / 467.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of SimCode: time 1.252e-06/0.334, allocations: 0 / 467.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04102/0.375, allocations: 17.35 MB / 485 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.347/9.722, allocations: 10.58 kB / 485 MB, free: 0.7305 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneTransfoOneLineOneTransfoThreeLines.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneTransfoOneLineOneTransfoThreeLines.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneTransfoOneLineOneTransfoThreeLines.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneTransfoOneLineOneTransfoThreeLines.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceOneTransfoOneLineOneTransfoThreeLines_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_OneSourceOneTransfoOneLineOneTransfoThreeLines.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneTransfoOneLineOneTransfoThreeLines.pipe 2>&1)