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.001585/0.001585, allocations: 104 kB / 16.31 MB, free: 6.391 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.00123/0.00123, allocations: 191.2 kB / 17.24 MB, free: 5.922 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.372/1.372, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05316/0.05316, allocations: 8.102 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 63.89 kB / 361.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.24, allocations: 51.51 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MediumNetworks.Network): time 0.003524/0.2435, allocations: 3.854 MB / 417.2 MB, free: 21.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.2458, allocations: 1.95 MB / 419.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.246, allocations: 15.94 kB / 419.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004864/0.2465, allocations: 226.6 kB / 419.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006747/0.2472, allocations: 389.5 kB / 419.8 MB, free: 19.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001919/0.2492, allocations: 1.307 MB / 421.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006506/0.2498, allocations: 0.7814 MB / 421.9 MB, free: 17.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002971/0.2501, allocations: 257.5 kB / 422.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.2503, allocations: 326.8 kB / 422.4 MB, free: 16.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003725/0.2507, allocations: 430.2 kB / 422.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.358e-05/0.2508, allocations: 64 kB / 422.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005548/0.2514, allocations: 303.7 kB / 423.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.2515, allocations: 151.4 kB / 423.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002712/0.2518, allocations: 378 kB / 423.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007705/0.2526, allocations: 0.9384 MB / 424.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2526, allocations: 0 / 424.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2526, allocations: 0 / 424.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.2526, allocations: 0 / 424.7 MB, free: 14.23 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.007377/0.26, allocations: 2.129 MB / 426.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.26, allocations: 11.89 kB / 426.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.704e-05/0.2601, allocations: 98.7 kB / 426.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.2603, allocations: 84.08 kB / 427 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005022/0.2608, allocations: 473.8 kB / 427.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.2608, allocations: 45.38 kB / 427.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.137e-05/0.2609, allocations: 60.38 kB / 427.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009762/0.2619, allocations: 0.843 MB / 428.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.2619, allocations: 3.938 kB / 428.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.494e-05/0.262, allocations: 27.98 kB / 428.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.262, allocations: 12 kB / 428.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009018/0.2629, allocations: 0.777 MB / 429.2 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003251/0.2662, allocations: 3.342 MB / 432.6 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.2675, allocations: 1.36 MB / 433.9 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005998/0.2681, allocations: 0.5929 MB / 434.5 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.008e-05/0.2682, allocations: 24.97 kB / 434.5 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.2682, allocations: 43.56 kB / 434.6 MB, free: 3.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.364e-06/0.2682, allocations: 0 / 434.6 MB, free: 3.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.01335/0.2816, allocations: 3.958 MB / 438.5 MB, free: 15.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.01e-05/0.2817, allocations: 127.7 kB / 438.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.2822, allocations: 433.7 kB / 439.1 MB, free: 15.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.2823, allocations: 49.7 kB / 439.1 MB, free: 15.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.2825, allocations: 229.5 kB / 439.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.2827, allocations: 299.5 kB / 439.6 MB, free: 14.65 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.283, allocations: 182.6 kB / 439.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.2831, allocations: 366.8 kB / 440.2 MB, free: 14.1 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000744/0.2839, allocations: 0.5447 MB / 440.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008326/0.2847, allocations: 0.6146 MB / 441.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.2864, allocations: 1.209 MB / 442.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2864, allocations: 0 / 442.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.006055/0.2925, allocations: 2.382 MB / 444.9 MB, free: 9.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.2925, allocations: 4 kB / 444.9 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.2926, allocations: 8 kB / 444.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006446/0.299, allocations: 1.78 MB / 446.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/0.2996, allocations: 147.8 kB / 446.9 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/0.3135, allocations: 7.367 MB / 454.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007985/0.3143, allocations: 91.2 kB / 454.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.3144, allocations: 35.98 kB / 454.4 MB, free: 15.77 MB / 334.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.0003696/0.3148, allocations: 209.7 kB / 454.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001855/0.315, allocations: 71.09 kB / 454.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006132/0.3211, allocations: 2.323 MB / 457 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.3212, allocations: 11.94 kB / 457 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.3212, allocations: 0 / 457 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.3212, allocations: 7.984 kB / 457 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007176/0.3284, allocations: 3.32 MB / 460.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.3284, allocations: 0 / 460.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/0.3288, allocations: 111.8 kB / 460.4 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006318/0.3352, allocations: 1.514 MB / 461.9 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.3353, allocations: 23.94 kB / 461.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01335/0.3487, allocations: 7.245 MB / 469.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3487, allocations: 0 / 469.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006056/0.3548, allocations: 2.279 MB / 471.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.355, allocations: 156 kB / 471.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.3551, allocations: 24 kB / 471.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006829/0.3558, allocations: 59.89 kB / 471.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.3561, allocations: 72.89 kB / 471.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.998e-05/0.3561, allocations: 28 kB / 471.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003553/0.3565, allocations: 295.1 kB / 472.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.423e-06/0.3565, allocations: 0 / 472.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009491/0.3575, allocations: 347.8 kB / 472.4 MB, free: 13.41 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.006131/0.3636, allocations: 2.867 MB / 475.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004793/0.3684, allocations: 1.997 MB / 477.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.3684, allocations: 4 kB / 477.3 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003267/0.3717, allocations: 1.295 MB / 478.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006191/0.3723, allocations: 88.39 kB / 478.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01846/0.3908, allocations: 9.172 MB / 487.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007073/0.3916, allocations: 0.9255 MB / 488.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003953/0.392, allocations: 88.84 kB / 488.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/0.3923, allocations: 243.3 kB / 489.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of SimCode: time 3.135e-06/0.3924, allocations: 0 / 489.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05658/0.4489, allocations: 28.23 MB / 0.5052 GB, free: 460 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.54, allocations: 7.938 kB / 0.5052 GB, free: 456 kB / 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)