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.001092/0.001092, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0008951/0.0008952, allocations: 93.02 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1939/0.1939, allocations: 38.06 MB / 357.2 MB, free: 1.902 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003066, allocations: 8 kB / 424 MB, free: 37.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3278, allocations: 56.32 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.4858, allocations: 104.3 MB / 0.5709 GB, free: 14.12 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003717/0.4862, allocations: 87.95 kB / 0.571 GB, free: 14.03 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1661/0.6523, allocations: 67.64 MB / 0.637 GB, free: 9.668 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6524, allocations: 0 / 0.637 GB, free: 9.668 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.305e-05/0.6524, allocations: 27.98 kB / 0.6371 GB, free: 9.641 MB / 474.7 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.003298/0.6557, allocations: 1.5 MB / 0.6385 GB, free: 8.078 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.6558, allocations: 11.98 kB / 0.6385 GB, free: 8.066 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003928/0.6597, allocations: 0.49 MB / 0.639 GB, free: 7.574 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001776/0.6615, allocations: 0.6874 MB / 0.6397 GB, free: 6.844 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.625e-05/0.6616, allocations: 82.16 kB / 0.6398 GB, free: 6.762 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002113/0.6619, allocations: 123.8 kB / 0.6399 GB, free: 6.641 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002916/0.6648, allocations: 1.584 MB / 0.6414 GB, free: 4.996 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.641e-05/0.6648, allocations: 4 kB / 0.6414 GB, free: 4.992 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/0.665, allocations: 43.98 kB / 0.6415 GB, free: 4.949 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003094/0.6653, allocations: 118.2 kB / 0.6416 GB, free: 4.832 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00286/0.6682, allocations: 1.605 MB / 0.6432 GB, free: 3.219 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2224/0.8906, allocations: 4.94 MB / 0.648 GB, free: 111.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002555/0.8932, allocations: 1.344 MB / 0.6493 GB, free: 111.6 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.148e-05/0.8933, allocations: 24.06 kB / 0.6493 GB, free: 111.6 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001797/0.8951, allocations: 0.8295 MB / 0.6501 GB, free: 111.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=126): time 4.288e-06/0.8951, allocations: 0 / 0.6501 GB, free: 111.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=137): time 0.01469/0.9098, allocations: 5.937 MB / 0.6559 GB, free: 110.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.406e-05/0.91, allocations: 121.9 kB / 0.656 GB, free: 110.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.9113, allocations: 0.496 MB / 0.6565 GB, free: 110.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002016/0.9115, allocations: 54.09 kB / 0.6566 GB, free: 110.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005476/0.9121, allocations: 476 kB / 0.657 GB, free: 110.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005075/0.9126, allocations: 470.4 kB / 0.6575 GB, free: 109.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.457e-05/0.9127, allocations: 27.22 kB / 0.6575 GB, free: 109.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.9129, allocations: 411.4 kB / 0.6579 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/0.9144, allocations: 0.5991 MB / 0.6585 GB, free: 109.6 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.9158, allocations: 0.7611 MB / 0.6592 GB, free: 109.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/0.9172, allocations: 0.7265 MB / 0.6599 GB, free: 109.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.9173, allocations: 4.438 kB / 0.6599 GB, free: 109.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.00437/0.9216, allocations: 2.033 MB / 0.6619 GB, free: 109.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003298/0.922, allocations: 1.172 MB / 0.6631 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.922, allocations: 6.953 kB / 0.6631 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.9235, allocations: 475.1 kB / 0.6635 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.9248, allocations: 273.5 kB / 0.6638 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007144/0.932, allocations: 5.045 MB / 0.6687 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/0.9332, allocations: 103.3 kB / 0.6688 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002062/0.9334, allocations: 50.88 kB / 0.6689 GB, free: 106 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.9335, allocations: 4.062 kB / 0.6689 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003794/0.9373, allocations: 1.869 MB / 0.6707 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.9373, allocations: 6.703 kB / 0.6707 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.9385, allocations: 434.8 kB / 0.6711 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.9396, allocations: 273 kB / 0.6714 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008608/0.9482, allocations: 6.183 MB / 0.6774 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/0.9498, allocations: 103.1 kB / 0.6775 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000219/0.95, allocations: 45.02 kB / 0.6775 GB, free: 103 MB / 474.7 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.001222/0.9513, allocations: 430.6 kB / 0.678 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003429/0.9516, allocations: 95.69 kB / 0.6781 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006254/0.9579, allocations: 2.159 MB / 0.6802 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.356e-05/0.9579, allocations: 22.25 kB / 0.6802 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-06/0.958, allocations: 0 / 0.6802 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/0.958, allocations: 6.094 kB / 0.6802 GB, free: 102.6 MB / 474.7 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.01016/0.9682, allocations: 3.954 MB / 0.684 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.9682, allocations: 4.125 kB / 0.6841 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.9694, allocations: 221.1 kB / 0.6843 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002291/0.9718, allocations: 0.5108 MB / 0.6848 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/0.9719, allocations: 28.97 kB / 0.6848 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/0.9836, allocations: 6.714 MB / 0.6913 GB, free: 96.45 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.9836, allocations: 11.38 kB / 0.6914 GB, free: 96.45 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008091/0.9917, allocations: 3.181 MB / 0.6945 GB, free: 95.01 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/0.9928, allocations: 292 kB / 0.6947 GB, free: 94.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003151/0.9931, allocations: 34.92 kB / 0.6948 GB, free: 94.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.9946, allocations: 95.06 kB / 0.6949 GB, free: 94.77 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004743/0.9951, allocations: 121.1 kB / 0.695 GB, free: 94.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/0.9953, allocations: 41.94 kB / 0.695 GB, free: 94.74 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008404/0.9961, allocations: 401.6 kB / 0.6954 GB, free: 94.56 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.044e-06/0.9962, allocations: 0 / 0.6954 GB, free: 94.56 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003608/0.9998, allocations: 0.6884 MB / 0.6961 GB, free: 94.49 MB / 474.7 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.0003338/1, allocations: 156.8 kB / 0.6962 GB, free: 94.37 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007041/1.007, allocations: 3.151 MB / 0.6993 GB, free: 92.96 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.007, allocations: 0 / 0.6993 GB, free: 92.96 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003151/1.01, allocations: 1.316 MB / 0.7006 GB, free: 92.33 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/1.012, allocations: 166.6 kB / 0.7007 GB, free: 92.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005885/1.018, allocations: 3.187 MB / 0.7039 GB, free: 90.53 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001177/1.019, allocations: 1.286 MB / 0.7051 GB, free: 89.76 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001103/1.02, allocations: 299.5 kB / 0.7054 GB, free: 89.73 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003552/1.021, allocations: 75.11 kB / 0.7055 GB, free: 89.72 MB / 474.7 MB Notification: Performance of SimCode: time 1.693e-06/1.021, allocations: 0 / 0.7055 GB, free: 89.72 MB / 474.7 MB Notification: Performance of Templates: time 0.03339/1.054, allocations: 19.82 MB / 0.7248 GB, free: 87.77 MB / 474.7 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