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.001804/0.001804, allocations: 174.7 kB / 13.63 MB, free: 1.684 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.855/1.855, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0007898/0.0007899, allocations: 86.69 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1628/0.1628, allocations: 37.98 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.037e-05/5.041e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1178, allocations: 56.32 MB / 474.1 MB, free: 4.785 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4615/0.5793, allocations: 104.2 MB / 0.5647 GB, free: 15.24 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/0.5797, allocations: 81.83 kB / 0.5648 GB, free: 15.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1649/0.7446, allocations: 67.26 MB / 0.6305 GB, free: 2.836 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7446, allocations: 4 kB / 0.6305 GB, free: 2.832 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.022e-05/0.7447, allocations: 23.98 kB / 0.6305 GB, free: 2.809 MB / 426.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.003068/0.7477, allocations: 1.399 MB / 0.6319 GB, free: 1.352 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.7478, allocations: 15.98 kB / 0.6319 GB, free: 1.336 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004191/0.752, allocations: 497.8 kB / 0.6323 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001685/0.7537, allocations: 0.6835 MB / 0.633 GB, free: 124 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.202e-05/0.7538, allocations: 86.14 kB / 0.6331 GB, free: 36 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002539/0.7541, allocations: 115.9 kB / 0.6332 GB, free: 15.92 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002602/0.7567, allocations: 1.51 MB / 0.6347 GB, free: 14.35 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.174e-05/0.7568, allocations: 8 kB / 0.6347 GB, free: 14.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.7569, allocations: 47.92 kB / 0.6347 GB, free: 14.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003187/0.7572, allocations: 118.2 kB / 0.6348 GB, free: 14.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002417/0.7596, allocations: 1.473 MB / 0.6363 GB, free: 12.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008791/0.7685, allocations: 4.949 MB / 0.6411 GB, free: 7.609 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.7703, allocations: 1.212 MB / 0.6423 GB, free: 6.375 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.7714, allocations: 0.7392 MB / 0.643 GB, free: 5.629 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-05/0.7715, allocations: 24.97 kB / 0.643 GB, free: 5.602 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001204/0.7727, allocations: 0.7672 MB / 0.6438 GB, free: 4.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 3.667e-06/0.7727, allocations: 0 / 0.6438 GB, free: 4.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=137): time 0.009136/0.7819, allocations: 4.761 MB / 0.6484 GB, free: 15.96 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.899e-05/0.782, allocations: 124.1 kB / 0.6486 GB, free: 15.81 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007754/0.7828, allocations: 0.4995 MB / 0.649 GB, free: 15.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001934/0.783, allocations: 49.7 kB / 0.6491 GB, free: 15.25 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000465/0.7835, allocations: 476.3 kB / 0.6496 GB, free: 14.78 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004946/0.784, allocations: 473.1 kB / 0.65 GB, free: 14.31 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8e-05/0.7841, allocations: 24 kB / 0.65 GB, free: 14.29 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.7843, allocations: 406.7 kB / 0.6504 GB, free: 13.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009002/0.7852, allocations: 0.5415 MB / 0.6509 GB, free: 13.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.7862, allocations: 0.6979 MB / 0.6516 GB, free: 12.59 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.7874, allocations: 0.682 MB / 0.6523 GB, free: 11.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.7874, allocations: 0 / 0.6523 GB, free: 11.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004301/0.7917, allocations: 2.111 MB / 0.6544 GB, free: 9.777 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005306/0.7923, allocations: 1.172 MB / 0.6555 GB, free: 8.512 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.7923, allocations: 0 / 0.6555 GB, free: 8.512 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002222/0.7945, allocations: 0.7178 MB / 0.6562 GB, free: 7.793 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.7957, allocations: 227.7 kB / 0.6564 GB, free: 7.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002078/0.7978, allocations: 1.566 MB / 0.6579 GB, free: 5.977 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.799, allocations: 107.9 kB / 0.658 GB, free: 5.871 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.7991, allocations: 48.08 kB / 0.6581 GB, free: 5.824 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.7991, allocations: 4 kB / 0.6581 GB, free: 5.82 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003871/0.803, allocations: 1.982 MB / 0.66 GB, free: 3.828 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.803, allocations: 7.984 kB / 0.66 GB, free: 3.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0021/0.8051, allocations: 0.7103 MB / 0.6607 GB, free: 3.105 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.8063, allocations: 223.6 kB / 0.6609 GB, free: 2.887 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009322/0.8156, allocations: 5.696 MB / 0.6665 GB, free: 13.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.817, allocations: 111.8 kB / 0.6666 GB, free: 12.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.8172, allocations: 39.98 kB / 0.6667 GB, free: 12.88 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 () * 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.0003486/0.8175, allocations: 168.8 kB / 0.6668 GB, free: 12.71 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.8177, allocations: 98.88 kB / 0.6669 GB, free: 12.61 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004096/0.8218, allocations: 2.029 MB / 0.6689 GB, free: 10.56 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.8219, allocations: 16 kB / 0.6689 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.8219, allocations: 0 / 0.6689 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.877e-05/0.8219, allocations: 11.97 kB / 0.6689 GB, free: 10.54 MB / 474.7 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.007034/0.8289, allocations: 3.819 MB / 0.6726 GB, free: 6.602 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/0.829, allocations: 0 / 0.6726 GB, free: 6.602 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009894/0.83, allocations: 223.7 kB / 0.6729 GB, free: 6.383 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.8315, allocations: 493.5 kB / 0.6733 GB, free: 5.895 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001276/0.8317, allocations: 31.98 kB / 0.6734 GB, free: 5.863 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009179/0.8409, allocations: 6.513 MB / 0.6797 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.8409, allocations: 11.94 kB / 0.6797 GB, free: 15.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005241/0.8462, allocations: 2.994 MB / 0.6827 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000781/0.847, allocations: 295.7 kB / 0.6829 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.8472, allocations: 35.92 kB / 0.683 GB, free: 11.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000852/0.848, allocations: 91.91 kB / 0.6831 GB, free: 11.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000317/0.8483, allocations: 125.1 kB / 0.6832 GB, free: 11.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.553e-05/0.8484, allocations: 36 kB / 0.6832 GB, free: 11.34 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005528/0.849, allocations: 395.2 kB / 0.6836 GB, free: 10.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.849, allocations: 0 / 0.6836 GB, free: 10.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001924/0.8509, allocations: 0.6523 MB / 0.6842 GB, free: 10.3 MB / 490.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) * 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.000265/0.8512, allocations: 147 kB / 0.6844 GB, free: 10.15 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004774/0.856, allocations: 2.784 MB / 0.6871 GB, free: 7.332 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.8561, allocations: 3.938 kB / 0.6871 GB, free: 7.328 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.8581, allocations: 1.246 MB / 0.6883 GB, free: 6.051 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.8592, allocations: 151.8 kB / 0.6885 GB, free: 5.902 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004246/0.8634, allocations: 2.186 MB / 0.6906 GB, free: 3.66 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.8645, allocations: 1.276 MB / 0.6918 GB, free: 2.355 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001147/0.8657, allocations: 331 kB / 0.6921 GB, free: 2.027 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002686/0.8659, allocations: 71.41 kB / 0.6922 GB, free: 1.957 MB / 490.7 MB Notification: Performance of SimCode: time 1.253e-06/0.8659, allocations: 4 kB / 0.6922 GB, free: 1.953 MB / 490.7 MB Notification: Performance of Templates: time 0.2738/1.14, allocations: 21.63 MB / 0.7133 GB, free: 139.7 MB / 0.4948 GB 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