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.0008706/0.0008706, allocations: 95.3 kB / 16.3 MB, free: 6.457 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.0009823/0.0009822, allocations: 181.6 kB / 17.19 MB, free: 6.34 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.292/1.292, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2861/0.2861, allocations: 38.06 MB / 330.3 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002734, allocations: 15.98 kB / 400 MB, free: 9.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2732, allocations: 59.15 MB / 459.1 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007022/0.2803, allocations: 8.432 MB / 467.6 MB, free: 24.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006066/0.2864, allocations: 5.001 MB / 472.6 MB, free: 20.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.2875, allocations: 35.28 kB / 472.6 MB, free: 20.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005177/0.2881, allocations: 195.2 kB / 472.8 MB, free: 20.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00297/0.2911, allocations: 0.817 MB / 473.6 MB, free: 19.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001483/0.2925, allocations: 476 kB / 474.1 MB, free: 19.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001592/0.2941, allocations: 0.953 MB / 475 MB, free: 19.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002092/0.2963, allocations: 1.409 MB / 476.4 MB, free: 18.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001075/0.2973, allocations: 0.5579 MB / 477 MB, free: 18.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007118/0.2981, allocations: 0.5115 MB / 477.5 MB, free: 17.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.2982, allocations: 51.12 kB / 477.5 MB, free: 17.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002442/0.3006, allocations: 0.8017 MB / 478.3 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006223/0.3013, allocations: 475.1 kB / 478.8 MB, free: 17.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003152/0.3016, allocations: 247 kB / 479 MB, free: 17.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002103/0.3037, allocations: 1.44 MB / 480.5 MB, free: 16.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3037, allocations: 0 / 480.5 MB, free: 16.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3037, allocations: 0 / 480.5 MB, free: 16.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.3037, allocations: 0 / 480.5 MB, free: 16.52 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: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.002436/0.3062, allocations: 1.457 MB / 481.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3062, allocations: 8.938 kB / 482 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003584/0.3098, allocations: 0.5144 MB / 482.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.311, allocations: 0.6521 MB / 483.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.97e-05/0.3111, allocations: 87.14 kB / 483.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002092/0.3113, allocations: 115.5 kB / 483.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00249/0.3138, allocations: 1.592 MB / 484.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.693e-05/0.3139, allocations: 6.219 kB / 484.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.314, allocations: 41.83 kB / 485 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/0.3141, allocations: 93.81 kB / 485 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002304/0.3164, allocations: 1.653 MB / 486.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006389/0.3228, allocations: 4.988 MB / 491.7 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/0.3246, allocations: 1.347 MB / 493 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.13e-05/0.3247, allocations: 20.97 kB / 493.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001154/0.3258, allocations: 0.8528 MB / 493.9 MB, free: 4.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=126): time 3.136e-06/0.3259, allocations: 4 kB / 493.9 MB, free: 4.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01228/0.3381, allocations: 6.374 MB / 0.4886 GB, free: 14.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/0.3383, allocations: 124.1 kB / 0.4887 GB, free: 14.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007329/0.339, allocations: 0.5665 MB / 0.4892 GB, free: 13.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.3391, allocations: 49.7 kB / 0.4893 GB, free: 13.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004018/0.3395, allocations: 468.3 kB / 0.4897 GB, free: 12.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003958/0.3399, allocations: 473.1 kB / 0.4902 GB, free: 12.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.944e-05/0.34, allocations: 32.03 kB / 0.4902 GB, free: 12.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002749/0.3403, allocations: 406.7 kB / 0.4906 GB, free: 12.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.3414, allocations: 0.6194 MB / 0.4912 GB, free: 11.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.3427, allocations: 0.7793 MB / 0.492 GB, free: 10.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.3439, allocations: 0.7498 MB / 0.4927 GB, free: 9.887 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3439, allocations: 3.938 kB / 0.4927 GB, free: 9.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003715/0.3476, allocations: 2.127 MB / 0.4948 GB, free: 7.734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005688/0.3482, allocations: 1.16 MB / 0.4959 GB, free: 6.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.945e-05/0.3483, allocations: 11.92 kB / 0.4959 GB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/0.3496, allocations: 461.4 kB / 0.4964 GB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.3507, allocations: 259.6 kB / 0.4966 GB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008426/0.3591, allocations: 6.419 MB / 0.5029 GB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.3604, allocations: 91.97 kB / 0.503 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.3605, allocations: 47.98 kB / 0.503 GB, free: 14.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.778e-06/0.3605, allocations: 4 kB / 0.503 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003472/0.364, allocations: 1.912 MB / 0.5049 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.364, allocations: 11.97 kB / 0.5049 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/0.3652, allocations: 442.1 kB / 0.5053 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.3662, allocations: 259.6 kB / 0.5056 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00754/0.3737, allocations: 6.171 MB / 0.5116 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.3748, allocations: 87.81 kB / 0.5117 GB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.524e-05/0.3749, allocations: 47.98 kB / 0.5117 GB, free: 5.703 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,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0008367/0.3758, allocations: 432.9 kB / 0.5121 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.3759, allocations: 94.88 kB / 0.5122 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004081/0.38, allocations: 2.188 MB / 0.5144 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.38, allocations: 12 kB / 0.5144 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.38, allocations: 0 / 0.5144 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.3801, allocations: 11.97 kB / 0.5144 GB, free: 2.941 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.006665/0.3867, allocations: 3.967 MB / 0.5183 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.3868, allocations: 0 / 0.5183 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008242/0.3876, allocations: 219.7 kB / 0.5185 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.389, allocations: 0.5056 MB / 0.519 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.447e-05/0.3891, allocations: 31.98 kB / 0.519 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00848/0.3976, allocations: 6.702 MB / 0.5255 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3977, allocations: 0 / 0.5255 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005862/0.4035, allocations: 3.228 MB / 0.5287 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007616/0.4043, allocations: 288 kB / 0.529 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.4045, allocations: 28.19 kB / 0.529 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007187/0.4052, allocations: 87.86 kB / 0.5291 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003008/0.4055, allocations: 129.2 kB / 0.5292 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.053e-05/0.4056, allocations: 47.98 kB / 0.5292 GB, free: 3.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000468/0.4061, allocations: 391.1 kB / 0.5296 GB, free: 2.793 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4061, allocations: 4 kB / 0.5296 GB, free: 2.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002085/0.4082, allocations: 0.6602 MB / 0.5303 GB, free: 2.129 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002218/0.4084, allocations: 138.3 kB / 0.5304 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005435/0.4139, allocations: 3.351 MB / 0.5337 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.4139, allocations: 0 / 0.5337 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002218/0.4161, allocations: 1.323 MB / 0.535 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.4173, allocations: 163.6 kB / 0.5351 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004685/0.4219, allocations: 3.161 MB / 0.5382 GB, free: 9.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009368/0.4229, allocations: 1.279 MB / 0.5394 GB, free: 8.531 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008929/0.4238, allocations: 299 kB / 0.5397 GB, free: 8.234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002779/0.4241, allocations: 83.41 kB / 0.5398 GB, free: 8.156 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4241, allocations: 4 kB / 0.5398 GB, free: 8.152 MB / 414.1 MB Notification: Performance of Templates: time 0.03061/0.4547, allocations: 20.12 MB / 0.5595 GB, free: 4.078 MB / 430.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