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.0007041/0.0007041, allocations: 93.34 kB / 16.65 MB, free: 6.598 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.0007337/0.0007339, allocations: 179.3 kB / 17.56 MB, free: 6.199 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.206/1.206, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1546/0.1546, allocations: 38.1 MB / 330.8 MB, free: 8.609 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.0002911, allocations: 12 kB / 400.7 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09702, allocations: 59.17 MB / 459.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.00983/0.1069, allocations: 9.375 MB / 469.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007273/0.1142, allocations: 5.488 MB / 474.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001008/0.1153, allocations: 31.88 kB / 474.8 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007125/0.116, allocations: 182.6 kB / 475 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003262/0.1193, allocations: 1.292 MB / 476.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001572/0.1209, allocations: 0.545 MB / 476.8 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003126/0.124, allocations: 3.201 MB / 480 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002746/0.1268, allocations: 1.549 MB / 481.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001354/0.1281, allocations: 0.653 MB / 482.2 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001454/0.1296, allocations: 0.8795 MB / 483.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002395/0.1298, allocations: 52 kB / 483.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002968/0.1328, allocations: 1.835 MB / 485 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006688/0.1335, allocations: 0.5142 MB / 485.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.1345, allocations: 0.6038 MB / 486.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003192/0.1377, allocations: 2.06 MB / 488.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1377, allocations: 0 / 488.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1378, allocations: 0 / 488.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.549e-05/0.1378, allocations: 0 / 488.1 MB, free: 10.65 MB / 366.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.002843/0.1407, allocations: 1.435 MB / 489.6 MB, free: 9.156 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1407, allocations: 12.03 kB / 489.6 MB, free: 9.145 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003559/0.1443, allocations: 490.7 kB / 490.1 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.1455, allocations: 0.6743 MB / 490.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.76e-05/0.1455, allocations: 86.52 kB / 490.8 MB, free: 7.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002692/0.1458, allocations: 108.4 kB / 490.9 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002857/0.1487, allocations: 1.62 MB / 492.6 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.481e-05/0.1487, allocations: 3.906 kB / 492.6 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/0.1489, allocations: 47.98 kB / 492.6 MB, free: 6.027 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000112/0.149, allocations: 86.22 kB / 492.7 MB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002862/0.1519, allocations: 1.66 MB / 494.4 MB, free: 4.273 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007739/0.1596, allocations: 4.988 MB / 499.3 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002111/0.1617, allocations: 1.362 MB / 0.489 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.163, allocations: 0.8096 MB / 0.4898 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.027e-05/0.1631, allocations: 24.97 kB / 0.4898 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.1644, allocations: 0.853 MB / 0.4906 GB, free: 12.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 3.286e-06/0.1644, allocations: 0 / 0.4906 GB, free: 12.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01379/0.1782, allocations: 6.462 MB / 0.4969 GB, free: 5.473 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.105e-05/0.1783, allocations: 116.1 kB / 0.497 GB, free: 5.336 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007046/0.179, allocations: 0.5626 MB / 0.4976 GB, free: 4.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.853e-05/0.1791, allocations: 53.7 kB / 0.4976 GB, free: 4.707 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.1795, allocations: 472.2 kB / 0.4981 GB, free: 4.238 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004068/0.1799, allocations: 469.2 kB / 0.4985 GB, free: 3.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.1801, allocations: 109.7 kB / 0.4986 GB, free: 3.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.1803, allocations: 406.7 kB / 0.499 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.1814, allocations: 0.6272 MB / 0.4996 GB, free: 2.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.1827, allocations: 0.7871 MB / 0.5004 GB, free: 1.797 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002355/0.185, allocations: 1.53 MB / 0.5019 GB, free: 228 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.185, allocations: 0 / 0.5019 GB, free: 228 kB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.1865/0.3715, allocations: 2.125 MB / 0.504 GB, free: 55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.412e-05/0.3716, allocations: 208.8 kB / 0.5042 GB, free: 54.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3716, allocations: 4.469 kB / 0.5042 GB, free: 54.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.3729, allocations: 447.8 kB / 0.5046 GB, free: 54.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.3739, allocations: 260.8 kB / 0.5049 GB, free: 54.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006965/0.3808, allocations: 6.293 MB / 0.511 GB, free: 51.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008097/0.3817, allocations: 90.56 kB / 0.5111 GB, free: 51.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.124e-05/0.3818, allocations: 59.31 kB / 0.5111 GB, free: 51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.883e-06/0.3818, allocations: 3.969 kB / 0.5111 GB, free: 51 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00318/0.385, allocations: 1.926 MB / 0.513 GB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.385, allocations: 7.828 kB / 0.513 GB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.3861, allocations: 436.9 kB / 0.5135 GB, free: 50.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.3872, allocations: 260.7 kB / 0.5137 GB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006092/0.3933, allocations: 6.045 MB / 0.5196 GB, free: 46.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007535/0.394, allocations: 79.08 kB / 0.5197 GB, free: 46.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.699e-05/0.3941, allocations: 54.02 kB / 0.5197 GB, free: 46.05 MB / 382.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.0005299/0.3947, allocations: 436.8 kB / 0.5201 GB, free: 45.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.3948, allocations: 96.98 kB / 0.5202 GB, free: 45.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003929/0.3987, allocations: 2.192 MB / 0.5224 GB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.3988, allocations: 22.41 kB / 0.5224 GB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.3988, allocations: 1.219 kB / 0.5224 GB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.3988, allocations: 12.34 kB / 0.5224 GB, free: 44.86 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.005575/0.4044, allocations: 3.986 MB / 0.5263 GB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4044, allocations: 2.656 kB / 0.5263 GB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008039/0.4052, allocations: 215.1 kB / 0.5265 GB, free: 43.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/0.4066, allocations: 0.5169 MB / 0.527 GB, free: 42.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.687e-05/0.4067, allocations: 43.77 kB / 0.5271 GB, free: 42.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00622/0.4129, allocations: 6.53 MB / 0.5334 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.413, allocations: 7.656 kB / 0.5334 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004179/0.4171, allocations: 3.133 MB / 0.5365 GB, free: 34.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003106/0.4175, allocations: 287.8 kB / 0.5368 GB, free: 34.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.4176, allocations: 32 kB / 0.5368 GB, free: 34.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006704/0.4183, allocations: 79.92 kB / 0.5369 GB, free: 34.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.4185, allocations: 125.1 kB / 0.537 GB, free: 34.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.015e-05/0.4185, allocations: 43.98 kB / 0.537 GB, free: 34.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003113/0.4189, allocations: 403.1 kB / 0.5374 GB, free: 34.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4189, allocations: 0 / 0.5374 GB, free: 34.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001531/0.4204, allocations: 0.6562 MB / 0.5381 GB, free: 33.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (inertia1.phi,inertia1.w,frequencyPowerControl.I.y,system.theta) * Number of discrete variables: 5 (system.initime,$whenCondition2,$whenCondition1,disturbance.T_start,disturbance.count) * Number of discrete states: 1 (disturbance.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(3,40), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001472/0.4206, allocations: 139.6 kB / 0.5382 GB, free: 33.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004042/0.4246, allocations: 3.368 MB / 0.5415 GB, free: 29.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.4246, allocations: 0 / 0.5415 GB, free: 29.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001632/0.4263, allocations: 1.331 MB / 0.5428 GB, free: 28.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009908/0.4273, allocations: 179.8 kB / 0.543 GB, free: 28.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003431/0.4307, allocations: 3.297 MB / 0.5462 GB, free: 24.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006126/0.4313, allocations: 1.26 MB / 0.5474 GB, free: 23.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007104/0.4321, allocations: 307 kB / 0.5477 GB, free: 23.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002423/0.4323, allocations: 79.34 kB / 0.5478 GB, free: 23.21 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4323, allocations: 0 / 0.5478 GB, free: 23.21 MB / 382.1 MB Notification: Performance of Templates: time 0.02344/0.4558, allocations: 20.74 MB / 0.568 GB, free: 2.547 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkControlled.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches