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.001008/0.001008, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.001088/0.001088, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.312/1.312, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1638/0.1638, allocations: 38.05 MB / 310.1 MB, free: 5.996 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.0005235/0.0005236, allocations: 16 kB / 377.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2019, allocations: 56.33 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.005209/0.2071, allocations: 7.319 MB / 440.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0045/0.2116, allocations: 4.2 MB / 445.1 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007133/0.2124, allocations: 15.94 kB / 445.1 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005247/0.213, allocations: 131 kB / 445.3 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002214/0.2152, allocations: 1.055 MB / 446.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007247/0.2159, allocations: 271.4 kB / 446.6 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001848/0.2178, allocations: 2.553 MB / 449.1 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005098/0.2183, allocations: 349.9 kB / 449.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008535/0.2192, allocations: 461.6 kB / 449.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008129/0.22, allocations: 0.6072 MB / 450.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.871e-05/0.2201, allocations: 20 kB / 450.6 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.2218, allocations: 1.235 MB / 451.8 MB, free: 388 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002925/0.2221, allocations: 259.3 kB / 452 MB, free: 128 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003865/0.2225, allocations: 260.5 kB / 452.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001755/0.2242, allocations: 0.8761 MB / 453.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.2243, allocations: 4 kB / 453.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.2243, allocations: 4 kB / 453.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.999e-05/0.2243, allocations: 0 / 453.2 MB, free: 14.97 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.001078/0.2254, allocations: 0.7104 MB / 453.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2254, allocations: 15.97 kB / 453.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.2255, allocations: 74.72 kB / 454 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001633/0.2272, allocations: 140.2 kB / 454.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.2276, allocations: 326.3 kB / 454.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.2276, allocations: 33.36 kB / 454.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.451e-05/0.2277, allocations: 40.36 kB / 454.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000775/0.2285, allocations: 0.5828 MB / 455.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.2285, allocations: 4 kB / 455.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.995e-05/0.2286, allocations: 19.98 kB / 455.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.973e-05/0.2286, allocations: 36.62 kB / 455.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00056/0.2292, allocations: 386.1 kB / 455.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.2314, allocations: 2.607 MB / 458.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000595/0.2321, allocations: 435.6 kB / 458.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002612/0.2323, allocations: 215.1 kB / 458.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.2324, allocations: 3.938 kB / 458.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.2324, allocations: 46.55 kB / 458.8 MB, free: 9.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.753e-06/0.2324, allocations: 0 / 458.8 MB, free: 9.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001611/0.234, allocations: 0.7693 MB / 459.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/0.2341, allocations: 110.8 kB / 459.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003173/0.2344, allocations: 320.7 kB / 460 MB, free: 7.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.2344, allocations: 33.7 kB / 460 MB, free: 7.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.2346, allocations: 251.8 kB / 460.3 MB, free: 7.461 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.761e-05/0.2347, allocations: 110.4 kB / 460.4 MB, free: 7.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.806e-05/0.2348, allocations: 45.7 kB / 460.4 MB, free: 7.301 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.2349, allocations: 346.8 kB / 460.8 MB, free: 6.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.2351, allocations: 124.8 kB / 460.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.2354, allocations: 283.4 kB / 461.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005018/0.2359, allocations: 460.1 kB / 461.6 MB, free: 5.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.2359, allocations: 0 / 461.6 MB, free: 5.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008179/0.2367, allocations: 0.5614 MB / 462.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.2368, allocations: 8 kB / 462.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.2368, allocations: 7.938 kB / 462.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003441/0.2371, allocations: 120.8 kB / 462.3 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.2374, allocations: 71.91 kB / 462.4 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002444/0.2398, allocations: 2.348 MB / 464.7 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.2401, allocations: 51.55 kB / 464.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.554e-05/0.2401, allocations: 23.94 kB / 464.8 MB, free: 2.621 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.0002079/0.2403, allocations: 197.7 kB / 465 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-05/0.2404, allocations: 31.69 kB / 465 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.432e-05/0.2405, allocations: 51.95 kB / 465.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2405, allocations: 4 kB / 465.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.2405, allocations: 4 kB / 465.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2406, allocations: 7.922 kB / 465.1 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.2417, allocations: 0.957 MB / 466.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.2418, allocations: 7.984 kB / 466.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/0.2419, allocations: 31.98 kB / 466.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002397/0.2422, allocations: 104.7 kB / 466.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.2422, allocations: 8 kB / 466.2 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/0.2444, allocations: 2.345 MB / 468.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.2444, allocations: 4.031 kB / 468.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006705/0.2451, allocations: 0.6224 MB / 469.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.935e-05/0.2452, allocations: 116.5 kB / 469.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.2453, allocations: 11.98 kB / 469.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.2454, allocations: 12 kB / 469.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.818e-05/0.2455, allocations: 31.91 kB / 469.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.2455, allocations: 8 kB / 469.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.2457, allocations: 223 kB / 469.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2457, allocations: 0 / 469.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006276/0.2464, allocations: 155.8 kB / 469.7 MB, free: 13.44 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.001235/0.2476, allocations: 1.164 MB / 470.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007827/0.2484, allocations: 0.5116 MB / 471.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.2484, allocations: 4.312 kB / 471.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004082/0.2488, allocations: 346.1 kB / 471.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005697/0.2494, allocations: 61.8 kB / 471.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004409/0.2538, allocations: 4.18 MB / 476 MB, free: 6.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.2543, allocations: 0.8746 MB / 476.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001738/0.2544, allocations: 71 kB / 476.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.2546, allocations: 127 kB / 477.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2546, allocations: 0 / 477.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.2729, allocations: 7.002 MB / 484.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002054/0.2732, allocations: 223.3 kB / 484.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.798/2.072, allocations: 0 / 484.3 MB, free: 14.58 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)