Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d",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.00105/0.00105, allocations: 99.45 kB / 16.5 MB, free: 6.641 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.001141/0.001141, allocations: 195.8 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1729/0.1729, allocations: 37.99 MB / 308.6 MB, free: 6.242 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 71.59 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2574, allocations: 55.23 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.006287/0.2638, allocations: 7.77 MB / 437.7 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004479/0.2683, allocations: 4.274 MB / 442 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004456/0.2687, allocations: 15.94 kB / 442 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002052/0.2708, allocations: 0.988 MB / 443 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002283/0.2731, allocations: 1.055 MB / 444.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007876/0.2739, allocations: 275.4 kB / 444.3 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.2756, allocations: 2.549 MB / 446.9 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004647/0.2761, allocations: 276.8 kB / 447.1 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004449/0.2765, allocations: 457.7 kB / 447.6 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006761/0.2772, allocations: 0.6228 MB / 448.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.407e-05/0.2773, allocations: 28 kB / 448.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.279, allocations: 1.247 MB / 449.5 MB, free: 168 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.2792, allocations: 263.3 kB / 449.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002504/0.2795, allocations: 238.8 kB / 450 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.2805, allocations: 0.8957 MB / 450.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2806, allocations: 0 / 450.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2806, allocations: 0 / 450.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.2806, allocations: 0 / 450.9 MB, free: 14.77 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001187/0.2818, allocations: 0.8 MB / 451.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.2818, allocations: 11.97 kB / 451.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.2819, allocations: 82.7 kB / 451.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/0.2834, allocations: 136.2 kB / 451.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.2838, allocations: 322.4 kB / 452.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.2838, allocations: 33.36 kB / 452.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.214e-05/0.2839, allocations: 36.38 kB / 452.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000789/0.2847, allocations: 0.5867 MB / 452.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.2847, allocations: 3.938 kB / 452.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/0.2848, allocations: 19.98 kB / 452.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.908e-05/0.2848, allocations: 36.62 kB / 452.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000552/0.2854, allocations: 382.1 kB / 453.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.2879, allocations: 2.603 MB / 455.9 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006444/0.2885, allocations: 435.5 kB / 456.3 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002927/0.2888, allocations: 227 kB / 456.6 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.2889, allocations: 8 kB / 456.6 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.2889, allocations: 34.56 kB / 456.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.704e-06/0.2889, allocations: 0 / 456.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001656/0.2906, allocations: 0.7577 MB / 457.4 MB, free: 7.934 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/0.2907, allocations: 106.8 kB / 457.5 MB, free: 7.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.291, allocations: 324.8 kB / 457.8 MB, free: 7.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.291, allocations: 37.7 kB / 457.8 MB, free: 7.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.2912, allocations: 247.8 kB / 458.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.128e-05/0.2913, allocations: 114.4 kB / 458.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.88e-05/0.2914, allocations: 85.98 kB / 458.3 MB, free: 6.984 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2915, allocations: 346.8 kB / 458.6 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.2917, allocations: 124.8 kB / 458.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002801/0.292, allocations: 279.5 kB / 459 MB, free: 6.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005136/0.2925, allocations: 464.1 kB / 459.4 MB, free: 5.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2925, allocations: 0 / 459.4 MB, free: 5.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008046/0.2933, allocations: 0.5613 MB / 460 MB, free: 5.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.2933, allocations: 12.12 kB / 460 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2934, allocations: 4 kB / 460 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003671/0.2937, allocations: 116.8 kB / 460.1 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.294, allocations: 79.83 kB / 460.2 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002661/0.2967, allocations: 2.347 MB / 462.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.2969, allocations: 43.62 kB / 462.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.2969, allocations: 27.92 kB / 462.6 MB, free: 2.305 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001976/0.2971, allocations: 201.6 kB / 462.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.24e-05/0.2972, allocations: 35.62 kB / 462.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.625e-05/0.2973, allocations: 47.95 kB / 462.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2973, allocations: 7.938 kB / 462.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.2973, allocations: 8.062 kB / 462.9 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2973, allocations: 0 / 462.9 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.2986, allocations: 0.9376 MB / 463.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2986, allocations: 0 / 463.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.2988, allocations: 39.98 kB / 463.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002418/0.299, allocations: 112.9 kB / 464 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.299, allocations: 8 kB / 464 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002144/0.3012, allocations: 2.329 MB / 466.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3012, allocations: 8 kB / 466.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006883/0.3019, allocations: 0.6228 MB / 467 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.275e-05/0.302, allocations: 120.5 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.302, allocations: 4 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.3022, allocations: 8 kB / 467.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.395e-05/0.3023, allocations: 35.83 kB / 467.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.3023, allocations: 12 kB / 467.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001926/0.3025, allocations: 215.1 kB / 467.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3025, allocations: 4 kB / 467.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006068/0.3031, allocations: 151.8 kB / 467.5 MB, free: 13.15 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009442/0.3041, allocations: 1.168 MB / 468.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007462/0.3048, allocations: 0.5229 MB / 469.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3048, allocations: 0 / 469.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000412/0.3052, allocations: 338.7 kB / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005775/0.3058, allocations: 65.97 kB / 469.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004258/0.3101, allocations: 4.155 MB / 473.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.3106, allocations: 0.8824 MB / 474.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001753/0.3107, allocations: 78.97 kB / 474.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3109, allocations: 115.3 kB / 474.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3109, allocations: 0 / 474.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.331, allocations: 7.131 MB / 482 MB, free: 14.39 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/0.3313, allocations: 231.8 kB / 482.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.165, allocations: 0 / 482.2 MB, free: 14.13 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1)