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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001573/0.001573, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.817/1.817, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008658/0.0008659, allocations: 78.31 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1815/0.1815, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.107e-05/2.12e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1545, allocations: 56.34 MB / 466.9 MB, free: 6.57 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.6098, allocations: 103.5 MB / 0.5571 GB, free: 7.398 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.61, allocations: 83.95 kB / 0.5571 GB, free: 7.316 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1646/0.7746, allocations: 66.94 MB / 0.6225 GB, free: 3.672 MB / 459.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.7747, allocations: 0 / 0.6225 GB, free: 3.672 MB / 459.1 MB Notification: Performance of Transformations before backend: time 8.56e-05/0.7748, allocations: 24 kB / 0.6225 GB, free: 3.648 MB / 459.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.004247/0.779, allocations: 1.403 MB / 0.6239 GB, free: 2.188 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.7791, allocations: 12.03 kB / 0.6239 GB, free: 2.176 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004415/0.7835, allocations: 489.8 kB / 0.6244 GB, free: 1.695 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00199/0.7855, allocations: 0.6874 MB / 0.6251 GB, free: 0.9648 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.598e-05/0.7856, allocations: 40 kB / 0.6251 GB, free: 0.9258 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003923/0.786, allocations: 75.86 kB / 0.6252 GB, free: 0.8516 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00255/0.7886, allocations: 1.16 MB / 0.6263 GB, free: 15.69 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002865/0.7915, allocations: 1.358 MB / 0.6276 GB, free: 14.27 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.483e-05/0.7915, allocations: 3.984 kB / 0.6276 GB, free: 14.27 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.7917, allocations: 4 kB / 0.6276 GB, free: 14.27 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003288/0.792, allocations: 122.1 kB / 0.6277 GB, free: 14.14 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008075/0.8001, allocations: 4.735 MB / 0.6324 GB, free: 9.293 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.8017, allocations: 1.171 MB / 0.6335 GB, free: 8.105 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008959/0.8026, allocations: 0.7054 MB / 0.6342 GB, free: 7.395 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.583e-05/0.8027, allocations: 17.3 kB / 0.6342 GB, free: 7.375 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/0.8038, allocations: 0.7351 MB / 0.6349 GB, free: 6.621 MB / 475.1 MB Notification: Performance of pre-optimization done (n=126): time 3.867e-06/0.8038, allocations: 0 / 0.6349 GB, free: 6.621 MB / 475.1 MB Notification: Performance of matching and sorting (n=137): time 0.00803/0.8118, allocations: 4.481 MB / 0.6393 GB, free: 2.039 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.812, allocations: 116.1 kB / 0.6394 GB, free: 1.902 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006548/0.8126, allocations: 450.4 kB / 0.6399 GB, free: 1.461 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 7.687e-05/0.8127, allocations: 25.7 kB / 0.6399 GB, free: 1.43 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004374/0.8132, allocations: 480.2 kB / 0.6403 GB, free: 0.9531 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004329/0.8136, allocations: 457.2 kB / 0.6408 GB, free: 0.5 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.389e-05/0.8137, allocations: 0 / 0.6408 GB, free: 0.5 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.8139, allocations: 410.7 kB / 0.6412 GB, free: 92 kB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3134/1.127, allocations: 0.514 MB / 0.6417 GB, free: 116.1 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/1.128, allocations: 0.6649 MB / 0.6423 GB, free: 116 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/1.13, allocations: 0.62 MB / 0.6429 GB, free: 116 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/1.13, allocations: 0.7812 kB / 0.6429 GB, free: 116 MB / 475.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004071/1.134, allocations: 1.961 MB / 0.6448 GB, free: 115.9 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000268/1.134, allocations: 1.17 MB / 0.646 GB, free: 114.7 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/1.134, allocations: 3.281 kB / 0.646 GB, free: 114.7 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002058/1.136, allocations: 0.6497 MB / 0.6466 GB, free: 114.7 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009773/1.137, allocations: 231.4 kB / 0.6468 GB, free: 114.7 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/1.139, allocations: 1.625 MB / 0.6484 GB, free: 114.1 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009778/1.14, allocations: 79.55 kB / 0.6485 GB, free: 114.1 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/1.14, allocations: 46.3 kB / 0.6485 GB, free: 114.1 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/1.14, allocations: 4.406 kB / 0.6485 GB, free: 114.1 MB / 475.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003651/1.144, allocations: 1.809 MB / 0.6503 GB, free: 114.1 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/1.144, allocations: 3.438 kB / 0.6503 GB, free: 114.1 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/1.146, allocations: 0.6383 MB / 0.6509 GB, free: 114 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009247/1.147, allocations: 229.1 kB / 0.6512 GB, free: 114 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007763/1.154, allocations: 5.402 MB / 0.6564 GB, free: 112.5 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/1.155, allocations: 74.38 kB / 0.6565 GB, free: 112.5 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.755e-05/1.156, allocations: 45.81 kB / 0.6565 GB, free: 112.5 MB / 475.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 99 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 57} Notification: Performance of prepare postOptimizeDAE: time 0.0003342/1.156, allocations: 118.6 kB / 0.6567 GB, free: 112.4 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/1.156, allocations: 93.45 kB / 0.6567 GB, free: 112.4 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003843/1.16, allocations: 1.896 MB / 0.6586 GB, free: 112.2 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/1.16, allocations: 14.91 kB / 0.6586 GB, free: 112.2 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/1.16, allocations: 8.297 kB / 0.6586 GB, free: 112.2 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/1.16, allocations: 7.969 kB / 0.6586 GB, free: 112.2 MB / 475.1 MB Warning: The model contains alias variables with conflicting start and/or 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.006295/1.166, allocations: 3.538 MB / 0.6621 GB, free: 111.7 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/1.166, allocations: 3.594 kB / 0.6621 GB, free: 111.7 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000933/1.167, allocations: 220.5 kB / 0.6623 GB, free: 111.7 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001454/1.169, allocations: 487.2 kB / 0.6628 GB, free: 111.7 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.12e-05/1.169, allocations: 13.97 kB / 0.6628 GB, free: 111.7 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008666/1.178, allocations: 6.338 MB / 0.669 GB, free: 108.9 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.178, allocations: 3.969 kB / 0.669 GB, free: 108.9 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00405/1.182, allocations: 2.875 MB / 0.6718 GB, free: 108.4 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004991/1.182, allocations: 286.8 kB / 0.6721 GB, free: 108.2 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/1.182, allocations: 8.188 kB / 0.6721 GB, free: 108.2 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007113/1.183, allocations: 74.11 kB / 0.6721 GB, free: 108.2 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/1.183, allocations: 123.5 kB / 0.6722 GB, free: 108.2 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.556e-05/1.183, allocations: 46.59 kB / 0.6723 GB, free: 108.2 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0004352/1.184, allocations: 339.7 kB / 0.6726 GB, free: 108.1 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.184, allocations: 0 / 0.6726 GB, free: 108.1 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001801/1.186, allocations: 0.5706 MB / 0.6732 GB, free: 108.1 MB / 475.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) * 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.0002332/1.186, allocations: 133.6 kB / 0.6733 GB, free: 108 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.003772/1.19, allocations: 2.656 MB / 0.6759 GB, free: 107.7 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.19, allocations: 0 / 0.6759 GB, free: 107.7 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001506/1.191, allocations: 1.18 MB / 0.677 GB, free: 107.4 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000759/1.192, allocations: 125.2 kB / 0.6772 GB, free: 107.3 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00318/1.195, allocations: 2.108 MB / 0.6792 GB, free: 106.4 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006956/1.196, allocations: 1.28 MB / 0.6805 GB, free: 105.7 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0009256/1.197, allocations: 330.8 kB / 0.6808 GB, free: 105.6 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002381/1.197, allocations: 68.38 kB / 0.6809 GB, free: 105.6 MB / 475.1 MB Notification: Performance of SimCode: time 3.897e-06/1.197, allocations: 0 / 0.6809 GB, free: 105.6 MB / 475.1 MB Notification: Performance of Templates: time 0.02695/1.224, allocations: 20.47 MB / 0.7008 GB, free: 104.5 MB / 475.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/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