Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.p.1.|impedance3.p.2.|impedance3.v.1.|impedance3.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop") translateModel(PowerSystems.Examples.Generic.Network.NetworkLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.p.1.|impedance3.p.2.|impedance3.v.1.|impedance3.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001698/0.001698, allocations: 185.3 kB / 8.138 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009829/0.000983, allocations: 91.25 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1661/0.1661, allocations: 37.96 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.702e-06/6.943e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 56.32 MB / 466.3 MB, free: 6.473 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3314/0.4412, allocations: 95.06 MB / 0.5482 GB, free: 15.52 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.4415, allocations: 79.95 kB / 0.5483 GB, free: 15.44 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.125/0.5665, allocations: 53.99 MB / 0.601 GB, free: 8.758 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.782e-05/0.5665, allocations: 16 kB / 0.601 GB, free: 8.742 MB / 442.7 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.001961/0.5685, allocations: 0.976 MB / 0.602 GB, free: 7.719 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.5686, allocations: 8.031 kB / 0.602 GB, free: 7.711 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003626/0.5722, allocations: 394.4 kB / 0.6024 GB, free: 7.324 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008629/0.5731, allocations: 484.2 kB / 0.6028 GB, free: 6.812 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.5731, allocations: 27.98 kB / 0.6029 GB, free: 6.785 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.5732, allocations: 44 kB / 0.6029 GB, free: 6.742 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001486/0.5747, allocations: 0.9371 MB / 0.6038 GB, free: 5.805 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.5763, allocations: 1.063 MB / 0.6049 GB, free: 4.715 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.5764, allocations: 3.906 kB / 0.6049 GB, free: 4.711 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-05/0.5765, allocations: 8 kB / 0.6049 GB, free: 4.703 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002657/0.5767, allocations: 97.91 kB / 0.605 GB, free: 4.605 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.5821, allocations: 3.437 MB / 0.6083 GB, free: 1.086 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/0.5835, allocations: 0.9735 MB / 0.6093 GB, free: 92 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000816/0.5843, allocations: 0.621 MB / 0.6099 GB, free: 15.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.76e-05/0.5844, allocations: 16.77 kB / 0.6099 GB, free: 15.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.5845, allocations: 47.34 kB / 0.6099 GB, free: 15.39 MB / 458.7 MB Notification: Performance of pre-optimization done (n=91): time 2.876e-06/0.5845, allocations: 3.938 kB / 0.61 GB, free: 15.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=92): time 0.003497/0.588, allocations: 1.936 MB / 0.6118 GB, free: 13.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.588, allocations: 85.89 kB / 0.6119 GB, free: 13.34 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/0.5884, allocations: 297.9 kB / 0.6122 GB, free: 13.05 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.04e-05/0.5885, allocations: 25.7 kB / 0.6122 GB, free: 13.02 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.5886, allocations: 276.1 kB / 0.6125 GB, free: 12.74 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00026/0.5889, allocations: 303.5 kB / 0.6128 GB, free: 12.44 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.589, allocations: 0 / 0.6128 GB, free: 12.44 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.5891, allocations: 370.7 kB / 0.6131 GB, free: 12.07 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006047/0.5897, allocations: 433.8 kB / 0.6136 GB, free: 11.64 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006909/0.5904, allocations: 0.5245 MB / 0.6141 GB, free: 11.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007916/0.5912, allocations: 0.512 MB / 0.6146 GB, free: 10.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.5912, allocations: 0 / 0.6146 GB, free: 10.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002585/0.5938, allocations: 1.362 MB / 0.6159 GB, free: 9.203 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.5939, allocations: 8.625 kB / 0.6159 GB, free: 9.195 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.5939, allocations: 4.188 kB / 0.6159 GB, free: 9.191 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009513/0.5948, allocations: 320.4 kB / 0.6162 GB, free: 8.879 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007873/0.5956, allocations: 167.8 kB / 0.6164 GB, free: 8.715 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004636/0.6003, allocations: 3.459 MB / 0.6198 GB, free: 5.133 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006512/0.601, allocations: 39.89 kB / 0.6198 GB, free: 5.094 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-05/0.601, allocations: 24 kB / 0.6198 GB, free: 5.07 MB / 458.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001807/0.6012, allocations: 116.8 kB / 0.6199 GB, free: 4.949 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.6013, allocations: 63.25 kB / 0.62 GB, free: 4.887 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002518/0.6039, allocations: 1.475 MB / 0.6214 GB, free: 3.402 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.6039, allocations: 12 kB / 0.6214 GB, free: 3.391 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.6039, allocations: 4 kB / 0.6214 GB, free: 3.387 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.6039, allocations: 7.969 kB / 0.6214 GB, free: 3.379 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004826/0.6088, allocations: 2.871 MB / 0.6243 GB, free: 404 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.6088, allocations: 4 kB / 0.6243 GB, free: 400 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006935/0.6095, allocations: 167.7 kB / 0.6244 GB, free: 232 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008273/0.6103, allocations: 273 kB / 0.6247 GB, free: 15.95 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.6104, allocations: 15.92 kB / 0.6247 GB, free: 15.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00436/0.6148, allocations: 3.278 MB / 0.6279 GB, free: 12.55 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.6148, allocations: 4 kB / 0.6279 GB, free: 12.54 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002449/0.6173, allocations: 1.672 MB / 0.6295 GB, free: 10.71 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.6175, allocations: 140.3 kB / 0.6297 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.6176, allocations: 8 kB / 0.6297 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005025/0.6181, allocations: 20.06 kB / 0.6297 GB, free: 10.53 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.6182, allocations: 76.48 kB / 0.6298 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.371e-05/0.6183, allocations: 27.98 kB / 0.6298 GB, free: 10.42 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002759/0.6186, allocations: 228.6 kB / 0.63 GB, free: 10.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001088/0.6197, allocations: 268 kB / 0.6303 GB, free: 9.938 MB / 474.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002138/0.6199, allocations: 119.1 kB / 0.6304 GB, free: 9.812 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.622, allocations: 1.253 MB / 0.6316 GB, free: 8.551 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.622, allocations: 4.562 kB / 0.6316 GB, free: 8.547 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.6231, allocations: 0.7464 MB / 0.6323 GB, free: 7.793 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005401/0.6237, allocations: 74.02 kB / 0.6324 GB, free: 7.719 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.6265, allocations: 1.496 MB / 0.6339 GB, free: 6.152 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000863/0.6274, allocations: 1.131 MB / 0.635 GB, free: 4.98 MB / 474.7 MB Notification: Performance of SimCode: time 2.003e-06/0.6274, allocations: 0 / 0.635 GB, free: 4.98 MB / 474.7 MB Notification: Performance of Templates: time 0.1917/0.8192, allocations: 10.01 MB / 0.6447 GB, free: 180.5 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches