Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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(PowerSystems.Examples.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",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.0008713/0.0008714, allocations: 90.67 kB / 16.65 MB, free: 6.586 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.0008998/0.0008998, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.177/1.177, allocations: 223.3 MB / 241.6 MB, free: 14.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1564/0.1564, allocations: 38.09 MB / 330.8 MB, free: 8.535 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002765/0.0002765, allocations: 13.06 kB / 400.8 MB, free: 34.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07909/0.07938, allocations: 59.16 MB / 460 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq): time 0.006065/0.08548, allocations: 7.185 MB / 467.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004613/0.09011, allocations: 4.417 MB / 471.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.0903, allocations: 15.94 kB / 471.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002592/0.09057, allocations: 127.1 kB / 471.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001645/0.09222, allocations: 1.145 MB / 472.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004907/0.09272, allocations: 283.3 kB / 473.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.09459, allocations: 2.592 MB / 475.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.09643, allocations: 1.241 MB / 477 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000506/0.09695, allocations: 485.7 kB / 477.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000682/0.09764, allocations: 0.6853 MB / 478.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.0977, allocations: 32 kB / 478.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.09951, allocations: 1.586 MB / 479.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003359/0.09986, allocations: 442.9 kB / 480.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003273/0.1002, allocations: 411.7 kB / 480.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001336/0.1015, allocations: 1.503 MB / 482.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.1015, allocations: 8 kB / 482.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1016, allocations: 0 / 482.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.1016, allocations: 0 / 482.1 MB, free: 0.7344 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.001208/0.1028, allocations: 0.9836 MB / 483.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.1028, allocations: 8.031 kB / 483.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.103, allocations: 135.2 kB / 483.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002795/0.1058, allocations: 387.4 kB / 483.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005331/0.1063, allocations: 482.6 kB / 484.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.1064, allocations: 54.36 kB / 484.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.1065, allocations: 76.27 kB / 484.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.108, allocations: 1.176 MB / 485.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.108, allocations: 4 kB / 485.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.562e-05/0.1081, allocations: 27.98 kB / 485.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.171e-05/0.1082, allocations: 73.95 kB / 485.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001668/0.1099, allocations: 1.245 MB / 486.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004506/0.1144, allocations: 3.531 MB / 490.3 MB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.1159, allocations: 1.074 MB / 491.3 MB, free: 7.258 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007824/0.1167, allocations: 0.6489 MB / 492 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.52e-05/0.1167, allocations: 20.98 kB / 492 MB, free: 6.582 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.1168, allocations: 47.67 kB / 492 MB, free: 6.527 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 1.863e-06/0.1168, allocations: 0 / 492 MB, free: 6.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.005876/0.1227, allocations: 3.107 MB / 495.1 MB, free: 3.395 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.1227, allocations: 90.09 kB / 495.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.123, allocations: 365.6 kB / 495.6 MB, free: 2.926 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.1231, allocations: 33.7 kB / 495.6 MB, free: 2.887 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.1233, allocations: 320.2 kB / 495.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.1235, allocations: 319.4 kB / 496.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.734e-05/0.1236, allocations: 77.61 kB / 496.3 MB, free: 2.168 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1237, allocations: 362.8 kB / 496.7 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/0.1244, allocations: 473.7 kB / 497.1 MB, free: 1.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006805/0.125, allocations: 0.5696 MB / 497.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.1264, allocations: 1.109 MB / 498.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1265, allocations: 4 kB / 498.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002198/0.1287, allocations: 1.473 MB / 0.4886 GB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1287, allocations: 4 kB / 0.4886 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1287, allocations: 4 kB / 0.4886 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008683/0.1296, allocations: 338.4 kB / 0.4889 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006368/0.1302, allocations: 183.7 kB / 0.4891 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/0.1348, allocations: 3.87 MB / 0.4929 GB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004259/0.1352, allocations: 51.88 kB / 0.4929 GB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-05/0.1353, allocations: 39.92 kB / 0.4929 GB, free: 9.473 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (80): * Single equations (assignments): 79 * 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 {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000328/0.1357, allocations: 289.6 kB / 0.4932 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.917e-05/0.1358, allocations: 63.23 kB / 0.4933 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002486/0.1383, allocations: 1.571 MB / 0.4948 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.1383, allocations: 8 kB / 0.4948 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1383, allocations: 8 kB / 0.4948 GB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.537e-06/0.1383, allocations: 3.984 kB / 0.4948 GB, free: 7.516 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004339/0.1426, allocations: 3.036 MB / 0.4978 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.1427, allocations: 4.031 kB / 0.4978 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005916/0.1433, allocations: 175.8 kB / 0.498 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007342/0.144, allocations: 284.5 kB / 0.4982 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.464e-05/0.1441, allocations: 27.98 kB / 0.4983 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004168/0.1482, allocations: 3.603 MB / 0.5018 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1483, allocations: 7.938 kB / 0.5018 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1506/0.2988, allocations: 1.587 MB / 0.5033 GB, free: 55.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.299, allocations: 146.7 kB / 0.5035 GB, free: 54.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.628e-05/0.2991, allocations: 23.42 kB / 0.5035 GB, free: 54.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/0.2996, allocations: 41.28 kB / 0.5035 GB, free: 54.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.2998, allocations: 88.06 kB / 0.5036 GB, free: 54.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.21e-05/0.2999, allocations: 31.64 kB / 0.5037 GB, free: 54.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002452/0.3001, allocations: 255.7 kB / 0.5039 GB, free: 54.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3001, allocations: 0 / 0.5039 GB, free: 54.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000886/0.301, allocations: 308.4 kB / 0.5042 GB, free: 54.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (82): * Single equations (assignments): 80 * 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 {(2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002376/0.3034, allocations: 2.164 MB / 0.5063 GB, free: 53.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001907/0.3053, allocations: 1.391 MB / 0.5077 GB, free: 53.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3053, allocations: 3.844 kB / 0.5077 GB, free: 53.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.3064, allocations: 0.8428 MB / 0.5085 GB, free: 53.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000752/0.3072, allocations: 104 kB / 0.5086 GB, free: 53.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009406/0.3166, allocations: 7.967 MB / 0.5164 GB, free: 49.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005649/0.3171, allocations: 1.067 MB / 0.5174 GB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004536/0.3176, allocations: 185.4 kB / 0.5176 GB, free: 48.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003269/0.3179, allocations: 261.6 kB / 0.5178 GB, free: 48.11 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.318, allocations: 0 / 0.5178 GB, free: 48.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5272/0.8452, allocations: 15.22 MB / 0.5327 GB, free: 39.42 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/0.8454, allocations: 231 kB / 0.5329 GB, free: 39.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.776, allocations: 3.172 kB / 0.5329 GB, free: 39.16 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches