Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.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.MediumNetworks.Network,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MediumNetworks.Network,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network",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.0008031/0.0008032, allocations: 102.6 kB / 16.07 MB, free: 32 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.0008753/0.0008752, allocations: 180.9 kB / 16.96 MB, free: 6.902 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.311/1.311, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1522/0.1522, allocations: 8.077 MB / 300.2 MB, free: 2.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003159/0.0003158, allocations: 8 kB / 363.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1005, allocations: 52.52 MB / 416.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MediumNetworks.Network): time 0.003295/0.1039, allocations: 3.438 MB / 419.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002697/0.1066, allocations: 1.929 MB / 421.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.1068, allocations: 8 kB / 421.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004321/0.1072, allocations: 183.1 kB / 421.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006974/0.1079, allocations: 346.1 kB / 422 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002118/0.1101, allocations: 1.261 MB / 423.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008518/0.1109, allocations: 0.7541 MB / 424 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003007/0.1112, allocations: 214.3 kB / 424.2 MB, free: 116 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1669/0.2782, allocations: 293.7 kB / 424.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005484/0.2787, allocations: 387.3 kB / 424.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.508e-05/0.2788, allocations: 36.25 kB / 424.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00062/0.2795, allocations: 262.2 kB / 425.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.936e-05/0.2796, allocations: 127.7 kB / 425.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003255/0.2799, allocations: 369.5 kB / 425.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008768/0.2808, allocations: 0.8902 MB / 426.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2808, allocations: 3.062 kB / 426.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2808, allocations: 0 / 426.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.2808, allocations: 1.344 kB / 426.6 MB, free: 35.14 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00739/0.2882, allocations: 2.028 MB / 428.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.2883, allocations: 9.688 kB / 428.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001731/0.2885, allocations: 91.95 kB / 428.7 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.2886, allocations: 86.06 kB / 428.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005998/0.2892, allocations: 485.7 kB / 429.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.32e-05/0.2893, allocations: 47.64 kB / 429.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.419e-05/0.2894, allocations: 59.75 kB / 429.4 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.2905, allocations: 0.8335 MB / 430.2 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.2905, allocations: 4.875 kB / 430.2 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-05/0.2906, allocations: 26.09 kB / 430.2 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.2906, allocations: 12.66 kB / 430.2 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009908/0.2916, allocations: 0.7794 MB / 431 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003642/0.2953, allocations: 3.356 MB / 434.4 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.2968, allocations: 1.358 MB / 435.7 MB, free: 32.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006429/0.2974, allocations: 0.5871 MB / 436.3 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.455e-05/0.2975, allocations: 22.39 kB / 436.3 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.2976, allocations: 54.06 kB / 436.4 MB, free: 31.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=89): time 2.555e-06/0.2976, allocations: 0 / 436.4 MB, free: 31.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.01399/0.3116, allocations: 3.943 MB / 440.3 MB, free: 31.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.3117, allocations: 127.2 kB / 440.5 MB, free: 31.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005358/0.3122, allocations: 429.2 kB / 440.9 MB, free: 30.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001449/0.3124, allocations: 51.17 kB / 440.9 MB, free: 30.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.3125, allocations: 239 kB / 441.2 MB, free: 30.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.3128, allocations: 299.7 kB / 441.5 MB, free: 30.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.3129, allocations: 93.31 kB / 441.5 MB, free: 30.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.371e-05/0.313, allocations: 375.9 kB / 441.9 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006907/0.3137, allocations: 0.5349 MB / 442.4 MB, free: 29.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007345/0.3144, allocations: 0.6219 MB / 443.1 MB, free: 29.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.3159, allocations: 1.203 MB / 444.3 MB, free: 28.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.3159, allocations: 2.625 kB / 444.3 MB, free: 28.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.005693/0.3216, allocations: 2.38 MB / 446.7 MB, free: 27.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.3217, allocations: 10.56 kB / 446.7 MB, free: 27.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3217, allocations: 0.5469 kB / 446.7 MB, free: 27.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006213/0.3279, allocations: 1.772 MB / 448.4 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005785/0.3285, allocations: 150.8 kB / 448.6 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.3396, allocations: 6.716 MB / 455.3 MB, free: 23.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000787/0.3404, allocations: 94.7 kB / 455.4 MB, free: 23.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-05/0.3405, allocations: 32.58 kB / 455.4 MB, free: 23.59 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 (87): * Single equations (assignments): 86 * 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 {(18,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0002798/0.3408, allocations: 201.8 kB / 455.6 MB, free: 23.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.3409, allocations: 64.09 kB / 455.7 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005781/0.3467, allocations: 2.329 MB / 458 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.3467, allocations: 9.188 kB / 458 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.3467, allocations: 0 / 458 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.3468, allocations: 10.78 kB / 458 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006535/0.3533, allocations: 3.332 MB / 461.4 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3533, allocations: 0.9688 kB / 461.4 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00037/0.3537, allocations: 113.9 kB / 461.5 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006284/0.36, allocations: 1.507 MB / 463 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.3601, allocations: 22.34 kB / 463 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/0.3718, allocations: 6.595 MB / 469.6 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3719, allocations: 0 / 469.6 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006092/0.378, allocations: 2.28 MB / 471.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002405/0.3783, allocations: 154 kB / 472 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.3784, allocations: 16.09 kB / 472 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007077/0.3791, allocations: 63.81 kB / 472.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/0.3794, allocations: 77.62 kB / 472.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-05/0.3795, allocations: 30.31 kB / 472.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003718/0.3798, allocations: 297 kB / 472.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3799, allocations: 3.938 kB / 472.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009745/0.3808, allocations: 343.5 kB / 472.8 MB, free: 15.45 MB / 350.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 (66): * Single equations (assignments): 65 * 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 {(18,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006363/0.3872, allocations: 2.862 MB / 475.7 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004391/0.3916, allocations: 1.916 MB / 477.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.3916, allocations: 1.469 kB / 477.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003208/0.3949, allocations: 1.26 MB / 478.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006547/0.3955, allocations: 82.39 kB / 479 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/0.4127, allocations: 9.449 MB / 488.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.4131, allocations: 0.9262 MB / 489.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003586/0.4135, allocations: 89.22 kB / 489.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002735/0.4138, allocations: 239.4 kB / 489.7 MB, free: 6.398 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4138, allocations: 4 kB / 489.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.4561, allocations: 26.22 MB / 0.5038 GB, free: 13.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/0.4563, allocations: 215.8 kB / 0.504 GB, free: 12.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.061/2.517, allocations: 4.062 kB / 0.504 GB, free: 12.89 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network.fmu > PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe 2>&1)