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.000936/0.0009358, allocations: 176.6 kB / 17.4 MB, free: 4.422 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.446/1.446, allocations: 205.4 MB / 223.5 MB, free: 9.016 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.0007576/0.0007575, allocations: 89.53 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1665/0.1665, allocations: 38.07 MB / 358.3 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004577/0.0004578, allocations: 12 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2798, allocations: 56.31 MB / 481.6 MB, free: 9.594 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.4788, allocations: 104.3 MB / 0.5722 GB, free: 13.91 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000377/0.4793, allocations: 95.81 kB / 0.5723 GB, free: 13.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2168/0.6961, allocations: 67.71 MB / 0.6384 GB, free: 9.375 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6961, allocations: 4 kB / 0.6384 GB, free: 9.371 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.13e-05/0.6962, allocations: 24 kB / 0.6384 GB, free: 9.348 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.004339/0.7006, allocations: 1.496 MB / 0.6399 GB, free: 7.785 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.526e-05/0.7007, allocations: 11.98 kB / 0.6399 GB, free: 7.773 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004173/0.7048, allocations: 498.7 kB / 0.6404 GB, free: 7.285 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.7067, allocations: 0.7155 MB / 0.6411 GB, free: 6.527 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.34e-05/0.7068, allocations: 82.53 kB / 0.6411 GB, free: 6.445 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004238/0.7072, allocations: 120.3 kB / 0.6413 GB, free: 6.328 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003511/0.7107, allocations: 1.585 MB / 0.6428 GB, free: 4.684 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-05/0.7108, allocations: 8.125 kB / 0.6428 GB, free: 4.676 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001797/0.711, allocations: 51.94 kB / 0.6429 GB, free: 4.625 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003071/0.7113, allocations: 118.2 kB / 0.643 GB, free: 4.508 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003257/0.7146, allocations: 1.601 MB / 0.6445 GB, free: 2.898 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2128/0.9274, allocations: 4.936 MB / 0.6494 GB, free: 111.6 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/0.9297, allocations: 1.35 MB / 0.6507 GB, free: 111.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/0.9309, allocations: 0.8005 MB / 0.6515 GB, free: 111.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.089e-05/0.931, allocations: 22.23 kB / 0.6515 GB, free: 111.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001421/0.9324, allocations: 0.8354 MB / 0.6523 GB, free: 111.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=126): time 3.316e-06/0.9324, allocations: 1.625 kB / 0.6523 GB, free: 111.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=137): time 0.01227/0.9447, allocations: 5.942 MB / 0.6581 GB, free: 110.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.9448, allocations: 123.1 kB / 0.6582 GB, free: 110.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009199/0.9457, allocations: 0.5694 MB / 0.6588 GB, free: 110.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.9459, allocations: 50.66 kB / 0.6588 GB, free: 110.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005142/0.9464, allocations: 485.3 kB / 0.6593 GB, free: 110.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00057/0.947, allocations: 463.9 kB / 0.6597 GB, free: 109.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.077e-05/0.9471, allocations: 26.19 kB / 0.6598 GB, free: 109.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.9472, allocations: 407.6 kB / 0.6601 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.9484, allocations: 0.6048 MB / 0.6607 GB, free: 109.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.9497, allocations: 0.7655 MB / 0.6615 GB, free: 109.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002428/0.9521, allocations: 1.467 MB / 0.6629 GB, free: 109.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.9522, allocations: 0 / 0.6629 GB, free: 109.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.0044/0.9566, allocations: 2.075 MB / 0.6649 GB, free: 109.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/0.9567, allocations: 205.4 kB / 0.6651 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.9567, allocations: 6.953 kB / 0.6651 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.9581, allocations: 465 kB / 0.6656 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.9593, allocations: 276.3 kB / 0.6658 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007758/0.9671, allocations: 6.287 MB / 0.672 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.9681, allocations: 106.2 kB / 0.6721 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.9683, allocations: 46.39 kB / 0.6721 GB, free: 106 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/0.9683, allocations: 4.5 kB / 0.6721 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003223/0.9716, allocations: 1.874 MB / 0.674 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.9716, allocations: 7.266 kB / 0.674 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000975/0.9726, allocations: 435.6 kB / 0.6744 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000967/0.9735, allocations: 270.8 kB / 0.6746 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005952/0.9795, allocations: 6.071 MB / 0.6806 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009974/0.9805, allocations: 98.12 kB / 0.6807 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.9807, allocations: 44.34 kB / 0.6807 GB, free: 102.9 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.000765/0.9815, allocations: 431.9 kB / 0.6811 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.9817, allocations: 94.88 kB / 0.6812 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003728/0.9854, allocations: 2.163 MB / 0.6833 GB, free: 101.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.9854, allocations: 17.59 kB / 0.6833 GB, free: 101.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.9854, allocations: 0 / 0.6833 GB, free: 101.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.9855, allocations: 7.781 kB / 0.6834 GB, free: 101.9 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.006277/0.9917, allocations: 3.952 MB / 0.6872 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.9918, allocations: 7 kB / 0.6872 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008303/0.9926, allocations: 221.1 kB / 0.6874 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.994, allocations: 0.5118 MB / 0.6879 GB, free: 100.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.122e-05/0.9941, allocations: 38.77 kB / 0.688 GB, free: 100.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007223/1.001, allocations: 6.536 MB / 0.6943 GB, free: 95.67 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.001, allocations: 3.625 kB / 0.6944 GB, free: 95.67 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005315/1.007, allocations: 3.081 MB / 0.6974 GB, free: 94.38 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006732/1.007, allocations: 292.1 kB / 0.6976 GB, free: 94.19 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002215/1.008, allocations: 27.69 kB / 0.6977 GB, free: 94.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009109/1.009, allocations: 97.91 kB / 0.6978 GB, free: 94.14 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003447/1.009, allocations: 122.6 kB / 0.6979 GB, free: 94.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.371e-05/1.009, allocations: 38.38 kB / 0.6979 GB, free: 94.11 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005474/1.01, allocations: 404.2 kB / 0.6983 GB, free: 93.93 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.01, allocations: 4 kB / 0.6983 GB, free: 93.93 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00268/1.012, allocations: 0.6884 MB / 0.699 GB, free: 93.86 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.0002626/1.013, allocations: 149.8 kB / 0.6991 GB, free: 93.74 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005041/1.018, allocations: 3.29 MB / 0.7023 GB, free: 92.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/1.018, allocations: 0 / 0.7023 GB, free: 92.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002034/1.02, allocations: 1.311 MB / 0.7036 GB, free: 91.56 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/1.021, allocations: 181.8 kB / 0.7038 GB, free: 91.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004435/1.026, allocations: 3.208 MB / 0.7069 GB, free: 89.74 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007876/1.026, allocations: 1.256 MB / 0.7081 GB, free: 88.97 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009156/1.027, allocations: 296.2 kB / 0.7084 GB, free: 88.95 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002729/1.028, allocations: 78.16 kB / 0.7085 GB, free: 88.93 MB / 474.7 MB Notification: Performance of SimCode: time 7.01e-07/1.028, allocations: 4 kB / 0.7085 GB, free: 88.93 MB / 474.7 MB Notification: Performance of Templates: time 0.02907/1.057, allocations: 20.17 MB / 0.7282 GB, free: 85.48 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/jenkins1/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