Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 104.2 kB / 17.59 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001611/0.001612, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1755/0.1755, allocations: 38.04 MB / 330.4 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 63.97 kB / 399.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08524/0.08655, allocations: 58.06 MB / 457.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.00338/0.08998, allocations: 2.147 MB / 459.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.09146, allocations: 1.072 MB / 460.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.329e-05/0.09152, allocations: 4 kB / 460.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.09167, allocations: 11.86 kB / 460.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.09179, allocations: 55.78 kB / 460.8 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008339/0.09263, allocations: 283.2 kB / 461.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.09279, allocations: 123.5 kB / 461.2 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.142e-05/0.09284, allocations: 0 / 461.2 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.736e-05/0.09294, allocations: 55.81 kB / 461.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.891e-05/0.09305, allocations: 67.73 kB / 461.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.472e-05/0.09307, allocations: 4 kB / 461.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005673/0.09365, allocations: 411.2 kB / 461.8 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.408e-05/0.09371, allocations: 35.89 kB / 461.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.075e-05/0.09377, allocations: 35.75 kB / 461.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005222/0.0943, allocations: 0.5184 MB / 462.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.09431, allocations: 0 / 462.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09432, allocations: 4 kB / 462.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.329e-06/0.09433, allocations: 0 / 462.3 MB, free: 3.246 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004273/0.09476, allocations: 456.8 kB / 462.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.0948, allocations: 8.031 kB / 462.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.09484, allocations: 16.75 kB / 462.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.09501, allocations: 192.1 kB / 463 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-06/0.09502, allocations: 384 / 463 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.09504, allocations: 12.06 kB / 463 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.0952, allocations: 89.66 kB / 463.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.09522, allocations: 3.984 kB / 463.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.09523, allocations: 0 / 463.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.09524, allocations: 0 / 463.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.205e-05/0.09533, allocations: 63.91 kB / 463.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.09548, allocations: 181.5 kB / 463.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.09561, allocations: 134.6 kB / 463.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.09573, allocations: 120.8 kB / 463.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.826e-06/0.09574, allocations: 0 / 463.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.09577, allocations: 30.56 kB / 463.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 8.71e-07/0.09578, allocations: 0 / 463.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004011/0.09618, allocations: 295.4 kB / 463.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.09624, allocations: 97.12 kB / 464 MB, free: 1.383 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.825e-05/0.09635, allocations: 137.1 kB / 464.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.09637, allocations: 25.7 kB / 464.2 MB, free: 1.211 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.371e-05/0.09642, allocations: 92.45 kB / 464.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.737e-05/0.09648, allocations: 67 kB / 464.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.09654, allocations: 25.7 kB / 464.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.09665, allocations: 322.8 kB / 464.7 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.487e-05/0.09673, allocations: 55.97 kB / 464.7 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.686e-05/0.0968, allocations: 63.97 kB / 464.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.09701, allocations: 226.8 kB / 465 MB, free: 352 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.09702, allocations: 0 / 465 MB, free: 352 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002377/0.09726, allocations: 231 kB / 465.2 MB, free: 108 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.063e-05/0.09732, allocations: 57.67 kB / 465.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.09733, allocations: 0 / 465.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.09735, allocations: 0 / 465.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-06/0.09735, allocations: 4 kB / 465.3 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.09736, allocations: 0 / 465.3 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.892e-05/0.09742, allocations: 15.94 kB / 465.3 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.09745, allocations: 8.062 kB / 465.3 MB, free: 16 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001349/0.09759, allocations: 183.4 kB / 465.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.09762, allocations: 15.81 kB / 465.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.09765, allocations: 17.17 kB / 465.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.09765, allocations: 0 / 465.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.09766, allocations: 3.938 kB / 465.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.09767, allocations: 0 / 465.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001259/0.0978, allocations: 201.4 kB / 465.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.09781, allocations: 0 / 465.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.09781, allocations: 3.938 kB / 465.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-06/0.09782, allocations: 4 kB / 465.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.09784, allocations: 4 kB / 465.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.09784, allocations: 0 / 465.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.09785, allocations: 0 / 465.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004027/0.09826, allocations: 392.8 kB / 466.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.018e-05/0.09832, allocations: 92.86 kB / 466.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.194e-05/0.09835, allocations: 4 kB / 466.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.801e-05/0.09839, allocations: 4.031 kB / 466.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.248e-05/0.09842, allocations: 8 kB / 466.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.09843, allocations: 8 kB / 466.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.43e-05/0.09849, allocations: 99.25 kB / 466.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.0985, allocations: 0 / 466.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003684/0.09887, allocations: 136 kB / 466.5 MB, free: 14.76 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003564/0.09924, allocations: 182.1 kB / 466.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005061/0.09975, allocations: 0.5773 MB / 467.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.09976, allocations: 0 / 467.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003251/0.1001, allocations: 471.2 kB / 467.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.1003, allocations: 23.92 kB / 467.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005458/0.1009, allocations: 418.6 kB / 468.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002311/0.1011, allocations: 0.7158 MB / 468.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.041e-05/0.1011, allocations: 11.44 kB / 468.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1011, allocations: 0 / 468.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Templates: time 0.00463/0.1058, allocations: 3.118 MB / 472 MB, free: 9.184 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches