Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.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.StructuredNetwork.DoubleNetworkWithLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads",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.001441/0.001441, allocations: 101.5 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.001495/0.001495, allocations: 189.8 kB / 17.24 MB, free: 5.875 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.318/1.318, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05005/0.05005, allocations: 8.099 MB / 299.2 MB, free: 6.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 63.91 kB / 361.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2251, allocations: 51.51 MB / 413.4 MB, free: 25.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads): time 0.004751/0.2299, allocations: 6.126 MB / 419.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003407/0.2334, allocations: 2.441 MB / 421.9 MB, free: 17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005163/0.2339, allocations: 20 kB / 421.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006764/0.2346, allocations: 329.7 kB / 422.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001194/0.2358, allocations: 0.6561 MB / 422.9 MB, free: 16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002213/0.2381, allocations: 1.468 MB / 424.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.2393, allocations: 1.439 MB / 425.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005183/0.2398, allocations: 0.5132 MB / 426.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003919/0.2402, allocations: 0.6033 MB / 426.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006244/0.2409, allocations: 0.7471 MB / 427.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.241, allocations: 144 kB / 427.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005717/0.2416, allocations: 383.8 kB / 428.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.2418, allocations: 306.9 kB / 428.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004265/0.2422, allocations: 0.7076 MB / 429.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.2434, allocations: 1.803 MB / 431 MB, free: 7.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2434, allocations: 0 / 431 MB, free: 7.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2434, allocations: 0 / 431 MB, free: 7.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.2434, allocations: 0 / 431 MB, free: 7.867 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.01227/0.2557, allocations: 3.24 MB / 434.3 MB, free: 4.566 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.2558, allocations: 11.89 kB / 434.3 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001749/0.256, allocations: 143.6 kB / 434.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002741/0.2562, allocations: 139.3 kB / 434.5 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009382/0.2572, allocations: 0.7731 MB / 435.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.233e-05/0.2572, allocations: 74.38 kB / 435.4 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.2574, allocations: 100.4 kB / 435.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/0.2592, allocations: 1.514 MB / 437 MB, free: 1.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.2592, allocations: 3.938 kB / 437 MB, free: 1.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.2594, allocations: 40 kB / 437 MB, free: 1.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.2594, allocations: 27.98 kB / 437.1 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.2611, allocations: 1.468 MB / 438.5 MB, free: 220 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007502/0.2686, allocations: 6.022 MB / 444.6 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003735/0.2723, allocations: 3.753 MB / 448.3 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.2739, allocations: 1.102 MB / 449.4 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001309/0.274, allocations: 41.19 kB / 449.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001039/0.2741, allocations: 60.11 kB / 449.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 4.008e-06/0.2741, allocations: 0 / 449.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.03248/0.3066, allocations: 8.286 MB / 457.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3068, allocations: 120.1 kB / 457.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.3079, allocations: 0.6682 MB / 458.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002571/0.3082, allocations: 69.64 kB / 458.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.3084, allocations: 346.3 kB / 459 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004521/0.3089, allocations: 0.5005 MB / 459.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004996/0.3094, allocations: 279.6 kB / 459.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3095, allocations: 353.9 kB / 460.1 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.311, allocations: 0.9607 MB / 461.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.3126, allocations: 1.086 MB / 462.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003463/0.3161, allocations: 2.154 MB / 464.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3161, allocations: 0 / 464.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.01059/0.3267, allocations: 4.127 MB / 468.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.3268, allocations: 6.188 kB / 468.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.3268, allocations: 4 kB / 468.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01227/0.339, allocations: 4.212 MB / 472.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.3401, allocations: 227.6 kB / 472.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0244/0.3645, allocations: 13.17 MB / 486 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.3658, allocations: 138.5 kB / 486.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.3659, allocations: 55.97 kB / 486.2 MB, free: 15.41 MB / 366.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 (135): * Single equations (assignments): 134 * 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 {(32,36)} Notification: Performance of prepare postOptimizeDAE: time 0.0005379/0.3665, allocations: 301.7 kB / 486.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002383/0.3667, allocations: 106.7 kB / 486.6 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01057/0.3773, allocations: 4.082 MB / 490.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/0.3773, allocations: 16 kB / 490.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3774, allocations: 4 kB / 490.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.3774, allocations: 7.969 kB / 490.7 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01227/0.3897, allocations: 6.003 MB / 496.8 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.3897, allocations: 0 / 496.8 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005914/0.3903, allocations: 175.7 kB / 496.9 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01076/0.4011, allocations: 2.911 MB / 499.8 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002247/0.4013, allocations: 28 kB / 499.9 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02317/0.4245, allocations: 12.95 MB / 0.5008 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4246, allocations: 0 / 0.5008 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/0.4352, allocations: 3.952 MB / 0.5047 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.4356, allocations: 207.3 kB / 0.5048 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.4358, allocations: 28 kB / 0.5049 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.4368, allocations: 91.44 kB / 0.505 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004587/0.4373, allocations: 138.3 kB / 0.5051 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.4374, allocations: 48 kB / 0.5051 GB, free: 96 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1614/0.5989, allocations: 456.8 kB / 0.5056 GB, free: 91.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.072e-06/0.5989, allocations: 0 / 0.5056 GB, free: 91.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002483/0.6014, allocations: 0.5546 MB / 0.5061 GB, free: 91.97 MB / 382.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 (105): * Single equations (assignments): 104 * 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 {(32,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009995/0.6114, allocations: 4.552 MB / 0.5106 GB, free: 91.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009522/0.621, allocations: 3.476 MB / 0.514 GB, free: 90.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/0.621, allocations: 7 kB / 0.514 GB, free: 90.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005995/0.627, allocations: 2.257 MB / 0.5162 GB, free: 89.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/0.6281, allocations: 161.8 kB / 0.5163 GB, free: 89.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02636/0.6545, allocations: 15.57 MB / 0.5315 GB, free: 77.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.655, allocations: 1.101 MB / 0.5326 GB, free: 76.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005094/0.6555, allocations: 148.6 kB / 0.5327 GB, free: 75.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004041/0.6559, allocations: 419.3 kB / 0.5331 GB, free: 75.47 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.6559, allocations: 0 / 0.5331 GB, free: 75.47 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06512/0.721, allocations: 49.96 MB / 0.5819 GB, free: 25.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.31, allocations: 7.5 kB / 0.5819 GB, free: 25.77 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads_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_StructuredNetwork_DoubleNetworkWithLoads.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe 2>&1)