Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.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.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",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.001071/0.001071, allocations: 104.3 kB / 16.31 MB, free: 6.402 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.001026/0.001026, allocations: 187.5 kB / 17.24 MB, free: 5.918 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.32/1.32, 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.04666/0.04666, allocations: 8.109 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.91 kB / 361.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2128, allocations: 51.51 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad): time 0.003226/0.2161, allocations: 1.675 MB / 415 MB, free: 23.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.2176, allocations: 1.559 MB / 416.6 MB, free: 22.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.308e-05/0.2177, allocations: 7.938 kB / 416.6 MB, free: 22.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003429/0.218, allocations: 139.2 kB / 416.7 MB, free: 22.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002975/0.2183, allocations: 127.2 kB / 416.8 MB, free: 22.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.2199, allocations: 0.9063 MB / 417.8 MB, free: 21.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004306/0.2204, allocations: 270.7 kB / 418 MB, free: 20.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.2206, allocations: 88.58 kB / 418.1 MB, free: 20.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.212e-05/0.2207, allocations: 111.6 kB / 418.2 MB, free: 20.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.2208, allocations: 131.5 kB / 418.3 MB, free: 20.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.698e-05/0.2209, allocations: 24 kB / 418.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003554/0.2212, allocations: 207.8 kB / 418.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.762e-05/0.2213, allocations: 59.77 kB / 418.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.825e-05/0.2214, allocations: 127.3 kB / 418.8 MB, free: 20.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00039/0.2218, allocations: 413.1 kB / 419.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2218, allocations: 4 kB / 419.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.2218, allocations: 0 / 419.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.2218, allocations: 3.938 kB / 419.2 MB, free: 19.74 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.002338/0.2242, allocations: 0.85 MB / 420 MB, free: 18.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.2242, allocations: 11.89 kB / 420 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.791e-05/0.2243, allocations: 54.73 kB / 420.1 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.378e-05/0.2243, allocations: 32.59 kB / 420.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.2246, allocations: 260.7 kB / 420.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.2246, allocations: 16.81 kB / 420.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.516e-05/0.2247, allocations: 20.38 kB / 420.4 MB, free: 18.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.225, allocations: 291.8 kB / 420.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.225, allocations: 3.938 kB / 420.7 MB, free: 18.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.2251, allocations: 12 kB / 420.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.2251, allocations: 4 kB / 420.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003235/0.2254, allocations: 281.6 kB / 421 MB, free: 17.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.2267, allocations: 1.039 MB / 422 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008408/0.2275, allocations: 465.4 kB / 422.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.2277, allocations: 172.8 kB / 422.6 MB, free: 16.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.796e-05/0.2278, allocations: 11.98 kB / 422.7 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.2278, allocations: 38.5 kB / 422.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.703e-06/0.2278, allocations: 0 / 422.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002673/0.2305, allocations: 0.9599 MB / 423.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.121e-05/0.2305, allocations: 63.41 kB / 423.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.2307, allocations: 207.9 kB / 423.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.2307, allocations: 33.7 kB / 423.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.2308, allocations: 144.5 kB / 424.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.569e-05/0.2309, allocations: 94.56 kB / 424.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.729e-05/0.231, allocations: 77.62 kB / 424.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.591e-05/0.231, allocations: 326.8 kB / 424.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.2312, allocations: 179.9 kB / 424.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.2314, allocations: 187.9 kB / 424.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004242/0.2319, allocations: 381.5 kB / 425.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2319, allocations: 0 / 425.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001212/0.2331, allocations: 0.6694 MB / 426 MB, free: 12.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.2331, allocations: 4 kB / 426 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2331, allocations: 0 / 426 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009729/0.2341, allocations: 244.6 kB / 426.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.2343, allocations: 55.91 kB / 426.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002913/0.2372, allocations: 2.708 MB / 429 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002349/0.2375, allocations: 39.53 kB / 429 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.2375, allocations: 11.98 kB / 429 MB, free: 9.406 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 (32): * Single equations (assignments): 31 * 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 {(3,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.2376, allocations: 139.1 kB / 429.2 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.717e-05/0.2377, allocations: 23.81 kB / 429.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.2389, allocations: 0.6023 MB / 429.8 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.2389, allocations: 8 kB / 429.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-06/0.2389, allocations: 4.109 kB / 429.8 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2389, allocations: 7.875 kB / 429.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.2404, allocations: 1.053 MB / 430.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.2404, allocations: 0 / 430.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.2405, allocations: 31.98 kB / 430.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008993/0.2414, allocations: 240.9 kB / 431.1 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.2415, allocations: 15.88 kB / 431.2 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002612/0.2441, allocations: 2.661 MB / 433.8 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2441, allocations: 4 kB / 433.8 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.2452, allocations: 0.6485 MB / 434.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.2453, allocations: 108.8 kB / 434.6 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.2453, allocations: 7.984 kB / 434.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.2455, allocations: 12 kB / 434.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.724e-05/0.2456, allocations: 19.97 kB / 434.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.2456, allocations: 11.98 kB / 434.6 MB, free: 3.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001234/0.2458, allocations: 163 kB / 434.8 MB, free: 3.398 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.11e-07/0.2458, allocations: 0 / 434.8 MB, free: 3.398 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003991/0.2462, allocations: 107.9 kB / 434.9 MB, free: 3.293 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 (20): * Single equations (assignments): 19 * 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 {(3,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001299/0.2475, allocations: 1.213 MB / 436.1 MB, free: 2.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.2487, allocations: 0.6271 MB / 436.7 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.2487, allocations: 0 / 436.7 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007138/0.2494, allocations: 411 kB / 437.1 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.2497, allocations: 23.98 kB / 437.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00497/0.2547, allocations: 3.362 MB / 440.5 MB, free: 13.53 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.2551, allocations: 0.7485 MB / 441.3 MB, free: 12.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000134/0.2553, allocations: 33.92 kB / 441.3 MB, free: 12.72 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.2554, allocations: 71.41 kB / 441.4 MB, free: 12.65 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2554, allocations: 0 / 441.4 MB, free: 12.65 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.2871, allocations: 8.889 MB / 450.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.17, allocations: 27.91 kB / 450.3 MB, free: 3.84 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad_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_TwoSourcesTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe 2>&1)