Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.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: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,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.|turbine1.tau|turbine2.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,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.|turbine1.tau|turbine2.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 108.7 kB / 17.75 MB, free: 5.223 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.001841/0.001841, allocations: 190.4 kB / 18.67 MB, free: 4.305 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.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1831/0.1831, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.91 kB / 458.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.294, allocations: 58.05 MB / 0.5048 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.00987/0.3039, allocations: 9.495 MB / 0.514 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008013/0.312, allocations: 5.415 MB / 0.5193 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009013/0.3129, allocations: 29.19 kB / 0.5194 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.3157, allocations: 1.124 MB / 0.5205 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003561/0.3193, allocations: 1.381 MB / 0.5218 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.321, allocations: 0.6115 MB / 0.5224 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002625/0.3236, allocations: 2.027 MB / 0.5244 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00158/0.3252, allocations: 1.046 MB / 0.5254 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001645/0.3269, allocations: 0.851 MB / 0.5262 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001591/0.3285, allocations: 0.9118 MB / 0.5271 GB, free: 9.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003625/0.3289, allocations: 110 kB / 0.5272 GB, free: 9.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003268/0.3321, allocations: 1.56 MB / 0.5288 GB, free: 8.715 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001025/0.3332, allocations: 0.5794 MB / 0.5293 GB, free: 8.504 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00164/0.3348, allocations: 0.6637 MB / 0.53 GB, free: 8.098 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004586/0.3394, allocations: 2.051 MB / 0.532 GB, free: 7.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.3395, allocations: 0 / 0.532 GB, free: 7.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3395, allocations: 0 / 0.532 GB, free: 7.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.29e-05/0.3395, allocations: 0 / 0.532 GB, free: 7.18 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.003999/0.3435, allocations: 1.65 MB / 0.5336 GB, free: 5.938 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.3436, allocations: 20.7 kB / 0.5336 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003962/0.3476, allocations: 477.8 kB / 0.5341 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001415/0.349, allocations: 0.6978 MB / 0.5347 GB, free: 5.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.062e-05/0.3491, allocations: 78.7 kB / 0.5348 GB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/0.3493, allocations: 109 kB / 0.5349 GB, free: 5.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002799/0.3521, allocations: 1.607 MB / 0.5365 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.858e-05/0.3521, allocations: 6.938 kB / 0.5365 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.3523, allocations: 48.95 kB / 0.5365 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001119/0.3524, allocations: 93.83 kB / 0.5366 GB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002901/0.3553, allocations: 1.63 MB / 0.5382 GB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008251/0.3636, allocations: 4.902 MB / 0.543 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002479/0.3661, allocations: 1.327 MB / 0.5443 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/0.3676, allocations: 0.7852 MB / 0.5451 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.741e-05/0.3677, allocations: 30.09 kB / 0.5451 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001612/0.3693, allocations: 0.8335 MB / 0.5459 GB, free: 14.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 5.069e-06/0.3694, allocations: 0 / 0.5459 GB, free: 14.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01454/0.3839, allocations: 6.337 MB / 0.5521 GB, free: 7.652 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.384, allocations: 120.1 kB / 0.5522 GB, free: 7.512 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007037/0.3847, allocations: 0.5665 MB / 0.5528 GB, free: 6.934 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.3848, allocations: 49.7 kB / 0.5528 GB, free: 6.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003777/0.3852, allocations: 480.2 kB / 0.5533 GB, free: 6.402 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004063/0.3856, allocations: 469.3 kB / 0.5537 GB, free: 5.938 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000377/0.386, allocations: 226.9 kB / 0.5539 GB, free: 5.711 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3862, allocations: 402.7 kB / 0.5543 GB, free: 5.309 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.3873, allocations: 0.6189 MB / 0.5549 GB, free: 4.684 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.3885, allocations: 0.7715 MB / 0.5557 GB, free: 3.871 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002447/0.391, allocations: 1.498 MB / 0.5571 GB, free: 2.324 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.391, allocations: 7.938 kB / 0.5572 GB, free: 2.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004021/0.3951, allocations: 2.068 MB / 0.5592 GB, free: 232 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.999e-05/0.3951, allocations: 41.62 kB / 0.5592 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.3951, allocations: 4 kB / 0.5592 GB, free: 180 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.3964, allocations: 453.6 kB / 0.5597 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.3976, allocations: 255.6 kB / 0.5599 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008709/0.4063, allocations: 6.754 MB / 0.5665 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009768/0.4073, allocations: 75.92 kB / 0.5666 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001393/0.4075, allocations: 55.97 kB / 0.5666 GB, free: 8.297 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001569/0.409, allocations: 0.8734 MB / 0.5675 GB, free: 7.422 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001206/0.4102, allocations: 0.7675 MB / 0.5682 GB, free: 6.613 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002382/0.4126, allocations: 1.467 MB / 0.5697 GB, free: 5.102 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.396e-06/0.4127, allocations: 0 / 0.5697 GB, free: 5.102 MB / 430.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003804/0.4165, allocations: 1.998 MB / 0.5716 GB, free: 3.082 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/0.4165, allocations: 41.69 kB / 0.5716 GB, free: 3.035 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.4165, allocations: 4 kB / 0.5716 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/0.4177, allocations: 434.1 kB / 0.5721 GB, free: 2.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.4189, allocations: 259.6 kB / 0.5723 GB, free: 2.348 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00805/0.4269, allocations: 6.594 MB / 0.5787 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.428, allocations: 75.83 kB / 0.5788 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001586/0.4282, allocations: 51.98 kB / 0.5789 GB, free: 11.34 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,disturbance.count,$PRE.disturbance.count,disturbance.T_start,$PRE.disturbance.T_start,$whenCondition1,$whenCondition2,frequencyPowerControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,9), (2,29)} Notification: Performance of prepare postOptimizeDAE: time 0.0004525/0.4287, allocations: 252.1 kB / 0.5791 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000277/0.4289, allocations: 98.81 kB / 0.5792 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004741/0.4337, allocations: 2.153 MB / 0.5813 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/0.4337, allocations: 7.969 kB / 0.5813 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.4337, allocations: 4 kB / 0.5813 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006974/0.4344, allocations: 287.8 kB / 0.5816 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002021/0.4347, allocations: 24 kB / 0.5816 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008931/0.4356, allocations: 79.89 kB / 0.5817 GB, free: 8.398 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003062/0.4359, allocations: 145 kB / 0.5818 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005337/0.4412, allocations: 2.313 MB / 0.5841 GB, free: 5.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004033/0.4453, allocations: 2.513 MB / 0.5865 GB, free: 3.402 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001156/0.4465, allocations: 0.6972 MB / 0.5872 GB, free: 2.707 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005299/0.447, allocations: 399 kB / 0.5876 GB, free: 2.316 MB / 446.1 MB Notification: Performance of Backend: time 5.41e-07/0.447, allocations: 4 kB / 0.5876 GB, free: 2.312 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006909/0.4539, allocations: 3.444 MB / 0.591 GB, free: 14.79 MB / 462.1 MB Notification: Performance of SimCode: time 0.00447/0.4584, allocations: 3.056 MB / 0.594 GB, free: 11.68 MB / 462.1 MB Notification: Performance of Templates: time 0.04895/0.5074, allocations: 31.8 MB / 0.625 GB, free: 11.92 MB / 494.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkControlled.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches