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.0007489/0.000749, allocations: 96.94 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008678/0.0008677, allocations: 181.6 kB / 16.96 MB, free: 6.895 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.308/1.308, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.153/0.153, allocations: 8.082 MB / 300.2 MB, free: 2.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 8 kB / 363.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09286/0.09319, allocations: 52.51 MB / 416.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads): time 0.004911/0.09814, allocations: 5.594 MB / 421.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003834/0.102, allocations: 2.416 MB / 424.1 MB, free: 276 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004652/0.1025, allocations: 20 kB / 424.1 MB, free: 256 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1718/0.2743, allocations: 269.1 kB / 424.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001984/0.2763, allocations: 0.5741 MB / 425 MB, free: 34.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002601/0.2789, allocations: 1.412 MB / 426.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001715/0.2806, allocations: 1.357 MB / 427.7 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006164/0.2812, allocations: 450.5 kB / 428.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006027/0.2819, allocations: 0.4989 MB / 428.7 MB, free: 34.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005781/0.2824, allocations: 0.6544 MB / 429.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.2826, allocations: 67.14 kB / 429.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005547/0.2831, allocations: 298.6 kB / 429.7 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.2832, allocations: 226 kB / 429.9 MB, free: 34.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004091/0.2837, allocations: 0.6223 MB / 430.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.2849, allocations: 1.702 MB / 432.2 MB, free: 33.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2849, allocations: 0 / 432.2 MB, free: 33.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2849, allocations: 0 / 432.2 MB, free: 33.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.2849, allocations: 0 / 432.2 MB, free: 33.6 MB / 350.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.01122/0.2961, allocations: 3.03 MB / 435.3 MB, free: 32.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2962, allocations: 12.31 kB / 435.3 MB, free: 32.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002787/0.2965, allocations: 143.3 kB / 435.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.2967, allocations: 141.8 kB / 435.6 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008858/0.2976, allocations: 0.7646 MB / 436.3 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.2977, allocations: 77.22 kB / 436.4 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/0.2978, allocations: 98.03 kB / 436.5 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.2999, allocations: 1.516 MB / 438 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.2999, allocations: 7.312 kB / 438 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.3, allocations: 39.16 kB / 438.1 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.3, allocations: 19.56 kB / 438.1 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.3019, allocations: 1.475 MB / 439.6 MB, free: 32.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005902/0.3078, allocations: 6.059 MB / 445.6 MB, free: 27.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002465/0.3103, allocations: 3.76 MB / 449.4 MB, free: 24.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/0.3115, allocations: 1.104 MB / 450.5 MB, free: 24.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001256/0.3116, allocations: 34.94 kB / 450.5 MB, free: 24.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.965e-05/0.3116, allocations: 57.31 kB / 450.6 MB, free: 24.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=151): time 3.296e-06/0.3116, allocations: 0 / 450.6 MB, free: 24.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=151): time 0.03172/0.3434, allocations: 8.264 MB / 458.8 MB, free: 22.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.3435, allocations: 119.8 kB / 458.9 MB, free: 21.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008292/0.3443, allocations: 0.6647 MB / 459.6 MB, free: 21.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002723/0.3446, allocations: 65.48 kB / 459.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.3448, allocations: 347.4 kB / 460 MB, free: 21.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/0.3451, allocations: 0.5005 MB / 460.5 MB, free: 20.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.3453, allocations: 140.3 kB / 460.7 MB, free: 20.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.881e-05/0.3454, allocations: 348.8 kB / 461 MB, free: 20.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.3466, allocations: 0.9602 MB / 462 MB, free: 20 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/0.3479, allocations: 1.085 MB / 463 MB, free: 19.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002776/0.3507, allocations: 2.164 MB / 465.2 MB, free: 18.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.3507, allocations: 0 / 465.2 MB, free: 18.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.01008/0.3608, allocations: 4.125 MB / 469.3 MB, free: 16.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3609, allocations: 5.016 kB / 469.3 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.3609, allocations: 0 / 469.3 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0125/0.3734, allocations: 4.216 MB / 473.5 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.3745, allocations: 226.7 kB / 473.8 MB, free: 16.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02275/0.3972, allocations: 11.96 MB / 485.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.3987, allocations: 144.6 kB / 485.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/0.3989, allocations: 60.23 kB / 485.9 MB, free: 9.012 MB / 350.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.0006559/0.3995, allocations: 306.4 kB / 486.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002822/0.3998, allocations: 109.3 kB / 486.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/0.4102, allocations: 4.085 MB / 490.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.4102, allocations: 16 kB / 490.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.4103, allocations: 0 / 490.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.155e-05/0.4103, allocations: 11.92 kB / 490.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/0.4213, allocations: 6.01 MB / 496.5 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.4213, allocations: 7.938 kB / 496.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005666/0.4219, allocations: 175.8 kB / 496.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01103/0.4329, allocations: 2.903 MB / 499.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002786/0.4332, allocations: 35.98 kB / 499.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02199/0.4552, allocations: 11.75 MB / 0.4993 GB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.4553, allocations: 0 / 0.4993 GB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01059/0.4659, allocations: 3.952 MB / 0.5032 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003564/0.4663, allocations: 207.3 kB / 0.5034 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.4665, allocations: 24 kB / 0.5034 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.4676, allocations: 118.7 kB / 0.5035 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004639/0.4681, allocations: 130.3 kB / 0.5037 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.4683, allocations: 55.98 kB / 0.5037 GB, free: 12.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006481/0.4689, allocations: 463 kB / 0.5041 GB, free: 12.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4689, allocations: 0 / 0.5041 GB, free: 12.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001776/0.4707, allocations: 0.5542 MB / 0.5047 GB, free: 11.64 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.01033/0.481, allocations: 4.547 MB / 0.5091 GB, free: 7.066 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007766/0.4888, allocations: 3.374 MB / 0.5124 GB, free: 3.676 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.4889, allocations: 0.6562 kB / 0.5124 GB, free: 3.676 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005728/0.4946, allocations: 2.19 MB / 0.5146 GB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.4957, allocations: 141.8 kB / 0.5147 GB, free: 1.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03317/0.5289, allocations: 16.03 MB / 0.5303 GB, free: 1.066 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006468/0.5295, allocations: 1.1 MB / 0.5314 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006887/0.5302, allocations: 151.7 kB / 0.5316 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005093/0.5308, allocations: 415.3 kB / 0.532 GB, free: 15.38 MB / 414.1 MB Notification: Performance of SimCode: time 2.355e-06/0.5308, allocations: 0 / 0.532 GB, free: 15.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0716/0.6024, allocations: 46.53 MB / 0.5774 GB, free: 1.051 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.6026, allocations: 245 kB / 0.5776 GB, free: 0.793 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.411/3.014, allocations: 0 / 0.5776 GB, free: 0.793 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe 2>&1)