Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.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.OneSouceOneLineOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSouceOneLineOneSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSouceOneLineOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSouceOneLineOneSource",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.001579/0.001579, allocations: 102.4 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.001868/0.001868, 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.373/1.373, allocations: 222.9 MB / 240.9 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04613/0.04613, allocations: 8.095 MB / 299.2 MB, free: 6.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.91 kB / 361.8 MB, free: 8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1975, allocations: 51.51 MB / 413.4 MB, free: 25.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSouceOneLineOneSource): time 0.002058/0.1996, allocations: 1.159 MB / 414.5 MB, free: 24.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2008, allocations: 1.434 MB / 415.9 MB, free: 22.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.23e-05/0.2009, allocations: 4 kB / 415.9 MB, free: 22.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002895/0.2012, allocations: 103.5 kB / 416 MB, free: 22.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.2014, allocations: 75.53 kB / 416.1 MB, free: 22.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.2024, allocations: 0.7506 MB / 416.9 MB, free: 22.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001754/0.2026, allocations: 131.4 kB / 417 MB, free: 21.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.2027, allocations: 49.09 kB / 417 MB, free: 21.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.724e-05/0.2028, allocations: 59.72 kB / 417.1 MB, free: 21.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.412e-05/0.2029, allocations: 63.77 kB / 417.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.188e-05/0.2029, allocations: 12 kB / 417.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.2032, allocations: 167.8 kB / 417.3 MB, free: 21.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.261e-05/0.2032, allocations: 27.86 kB / 417.4 MB, free: 21.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.828e-05/0.2032, allocations: 63.72 kB / 417.4 MB, free: 21.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002761/0.2035, allocations: 257.5 kB / 417.7 MB, free: 21.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2035, allocations: 0 / 417.7 MB, free: 21.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2036, allocations: 4 kB / 417.7 MB, free: 21.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.2036, allocations: 4 kB / 417.7 MB, free: 21.19 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001394/0.205, allocations: 0.585 MB / 418.3 MB, free: 20.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.205, allocations: 12.03 kB / 418.3 MB, free: 20.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.2051, allocations: 46.73 kB / 418.3 MB, free: 20.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.214e-05/0.2051, allocations: 12.75 kB / 418.3 MB, free: 20.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.2053, allocations: 220 kB / 418.6 MB, free: 20.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.2053, allocations: 8.609 kB / 418.6 MB, free: 20.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.2053, allocations: 12.38 kB / 418.6 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002376/0.2055, allocations: 173.6 kB / 418.8 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.2056, allocations: 3.938 kB / 418.8 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.2056, allocations: 8 kB / 418.8 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.2056, allocations: 4 kB / 418.8 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001856/0.2058, allocations: 148.6 kB / 418.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007158/0.2065, allocations: 0.5636 MB / 419.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.2067, allocations: 161.9 kB / 419.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.658e-05/0.2068, allocations: 68.84 kB / 419.7 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.105e-05/0.2069, allocations: 7.938 kB / 419.7 MB, free: 19.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.2069, allocations: 30.56 kB / 419.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.2069, allocations: 0 / 419.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008741/0.2078, allocations: 391.5 kB / 420.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.915e-05/0.2078, allocations: 55.41 kB / 420.2 MB, free: 18.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.2079, allocations: 167.5 kB / 420.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.208, allocations: 29.64 kB / 420.4 MB, free: 18.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.146e-05/0.208, allocations: 120.1 kB / 420.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.208, allocations: 55.28 kB / 420.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.417e-05/0.2081, allocations: 45.69 kB / 420.6 MB, free: 18.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.713e-05/0.2081, allocations: 326.8 kB / 420.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.2083, allocations: 87.97 kB / 421 MB, free: 17.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.2084, allocations: 94.2 kB / 421.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.2086, allocations: 188.7 kB / 421.3 MB, free: 17.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2086, allocations: 0 / 421.3 MB, free: 17.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004666/0.2091, allocations: 311.9 kB / 421.6 MB, free: 17.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.2091, allocations: 6.5 kB / 421.6 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2091, allocations: 0 / 421.6 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002584/0.2094, allocations: 52.81 kB / 421.6 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.2095, allocations: 31.98 kB / 421.7 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.2106, allocations: 1.551 MB / 423.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.2107, allocations: 15.75 kB / 423.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.2108, allocations: 12 kB / 423.2 MB, free: 15.24 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 (22): * Single equations (assignments): 21 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.36e-05/0.2108, allocations: 125.8 kB / 423.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.896e-05/0.2109, allocations: 11.91 kB / 423.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004133/0.2113, allocations: 235.2 kB / 423.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2113, allocations: 0 / 423.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.2113, allocations: 4 kB / 423.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2113, allocations: 0 / 423.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001952/0.2115, allocations: 265.4 kB / 423.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2115, allocations: 3.938 kB / 423.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.984e-05/0.2116, allocations: 19.98 kB / 423.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001903/0.2118, allocations: 56.81 kB / 423.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.2118, allocations: 3.938 kB / 423.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009133/0.2128, allocations: 1.531 MB / 425.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2128, allocations: 3.984 kB / 425.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003589/0.2131, allocations: 316.2 kB / 425.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.71e-05/0.2132, allocations: 85.02 kB / 425.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.2132, allocations: 4 kB / 425.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.2133, allocations: 3.938 kB / 425.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.006e-05/0.2134, allocations: 15.98 kB / 425.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.2134, allocations: 0 / 425.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.808e-05/0.2135, allocations: 134.1 kB / 426 MB, free: 12.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2135, allocations: 0 / 426 MB, free: 12.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003062/0.2138, allocations: 59.84 kB / 426.1 MB, free: 12.14 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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 {(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.0005628/0.2143, allocations: 0.8628 MB / 427 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005479/0.2149, allocations: 318.6 kB / 427.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2149, allocations: 4 kB / 427.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.2152, allocations: 202.6 kB / 427.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.2155, allocations: 8.844 kB / 427.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.2174, allocations: 2.075 MB / 429.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.2175, allocations: 0.7122 MB / 430.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.443e-05/0.2176, allocations: 20.62 kB / 430.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.826e-05/0.2177, allocations: 35.42 kB / 430.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2177, allocations: 0 / 430.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.2396, allocations: 3.816 MB / 434.1 MB, free: 4.016 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.143/9.382, allocations: 3.938 kB / 434.1 MB, free: 4.012 MB / 302.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource_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_OneSouceOneLineOneSource.fmu > PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.pipe 2>&1)