Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001212/0.001212, allocations: 175.5 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.567/1.567, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009787/0.000979, allocations: 78.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1644/0.1644, allocations: 37.97 MB / 353.5 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.012e-05, allocations: 0 / 417.7 MB, free: 29.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.129, allocations: 56.33 MB / 474.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4517/0.5808, allocations: 95.02 MB / 0.5557 GB, free: 7.676 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.5811, allocations: 84.38 kB / 0.5558 GB, free: 7.633 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02578/0.6068, allocations: 10.21 MB / 0.5658 GB, free: 14.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6069, allocations: 7.938 kB / 0.5658 GB, free: 14.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.227e-05/0.6069, allocations: 16 kB / 0.5658 GB, free: 14.85 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00102/0.6079, allocations: 0.6739 MB / 0.5665 GB, free: 14.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.608, allocations: 12.03 kB / 0.5665 GB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.623e-05/0.6081, allocations: 55.64 kB / 0.5665 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002461/0.6106, allocations: 1.017 MB / 0.5675 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.381e-05/0.6106, allocations: 27.03 kB / 0.5675 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.966e-05/0.6107, allocations: 35 kB / 0.5676 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006491/0.6114, allocations: 450 kB / 0.568 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.6114, allocations: 0 / 0.568 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.6114, allocations: 17.81 kB / 0.568 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.6115, allocations: 12 kB / 0.568 GB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004879/0.6119, allocations: 297.8 kB / 0.5683 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.6139, allocations: 1.763 MB / 0.57 GB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.6141, allocations: 135.4 kB / 0.5702 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.897e-05/0.6142, allocations: 64.28 kB / 0.5702 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.6142, allocations: 4 kB / 0.5702 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.6142, allocations: 34.55 kB / 0.5703 GB, free: 10.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.514e-06/0.6143, allocations: 4 kB / 0.5703 GB, free: 10.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008942/0.6152, allocations: 0.5666 MB / 0.5708 GB, free: 10.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.6152, allocations: 114.8 kB / 0.5709 GB, free: 9.945 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.6156, allocations: 318.8 kB / 0.5712 GB, free: 9.684 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.6156, allocations: 25.7 kB / 0.5713 GB, free: 9.652 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.6157, allocations: 286.3 kB / 0.5715 GB, free: 9.438 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.854e-05/0.6158, allocations: 49.55 kB / 0.5716 GB, free: 9.395 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.6158, allocations: 7.938 kB / 0.5716 GB, free: 9.391 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.616, allocations: 348.2 kB / 0.5719 GB, free: 9.059 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.367e-05/0.616, allocations: 50.67 kB / 0.572 GB, free: 9.023 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.6162, allocations: 191.1 kB / 0.5722 GB, free: 8.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.6164, allocations: 81.22 kB / 0.5722 GB, free: 8.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.6164, allocations: 8 kB / 0.5722 GB, free: 8.723 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003773/0.6168, allocations: 283.8 kB / 0.5725 GB, free: 8.484 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.6168, allocations: 12.09 kB / 0.5725 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.6168, allocations: 4 kB / 0.5725 GB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.6168, allocations: 8 kB / 0.5725 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.6171, allocations: 67.72 kB / 0.5726 GB, free: 8.398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.55e-05/0.6171, allocations: 11.94 kB / 0.5726 GB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.6173, allocations: 15.66 kB / 0.5726 GB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.6173, allocations: 15.94 kB / 0.5726 GB, free: 8.359 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.002e-05/0.6174, allocations: 128.3 kB / 0.5728 GB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.777e-05/0.6175, allocations: 47.47 kB / 0.5728 GB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002792/0.6178, allocations: 171.2 kB / 0.573 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.6178, allocations: 4 kB / 0.573 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.6178, allocations: 0 / 0.573 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.6178, allocations: 0 / 0.573 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006411/0.6185, allocations: 0.5303 MB / 0.5735 GB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.6185, allocations: 0 / 0.5735 GB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001818/0.6187, allocations: 35.92 kB / 0.5735 GB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.6187, allocations: 8.031 kB / 0.5735 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.6187, allocations: 3.75 kB / 0.5735 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.6187, allocations: 4 kB / 0.5735 GB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.6187, allocations: 0 / 0.5735 GB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003996/0.6191, allocations: 433.8 kB / 0.574 GB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.356e-05/0.6192, allocations: 108.6 kB / 0.5741 GB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.6193, allocations: 4.125 kB / 0.5741 GB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.6194, allocations: 8.031 kB / 0.5741 GB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.356e-05/0.6195, allocations: 23.81 kB / 0.5741 GB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.6195, allocations: 4 kB / 0.5741 GB, free: 6.934 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000225/0.6197, allocations: 246.7 kB / 0.5743 GB, free: 6.738 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6197, allocations: 4 kB / 0.5743 GB, free: 6.734 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004427/0.6202, allocations: 75.75 kB / 0.5744 GB, free: 6.668 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltage2.theta,ind2.i,ind1.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001351/0.6203, allocations: 110.9 kB / 0.5745 GB, free: 6.555 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002508/0.6206, allocations: 151.3 kB / 0.5747 GB, free: 6.438 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6206, allocations: 384 / 0.5747 GB, free: 6.438 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.71e-05/0.6207, allocations: 59.8 kB / 0.5747 GB, free: 6.391 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005184/0.6212, allocations: 93.78 kB / 0.5748 GB, free: 6.324 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.6224, allocations: 0.6257 MB / 0.5754 GB, free: 5.703 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.6228, allocations: 0.8538 MB / 0.5762 GB, free: 4.832 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001878/0.623, allocations: 51.25 kB / 0.5763 GB, free: 4.781 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.901e-05/0.623, allocations: 31.44 kB / 0.5763 GB, free: 4.75 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/0.623, allocations: 0 / 0.5763 GB, free: 4.75 MB / 378.7 MB Notification: Performance of Templates: time 0.006822/0.6299, allocations: 2.993 MB / 0.5792 GB, free: 1.777 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches