Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.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.AC3ph.Elementary.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC3ph.Elementary.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001431/0.001431, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.543/1.543, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00116/0.00116, allocations: 91.3 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1965/0.1965, allocations: 37.99 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.515e-05/1.516e-05, allocations: 0 / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3806/0.4825, allocations: 109.3 MB / 0.5627 GB, free: 1.637 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.4828, allocations: 91.95 kB / 0.5628 GB, free: 1.547 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06335/0.5461, allocations: 23.11 MB / 0.5853 GB, free: 10.23 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.5462, allocations: 0 / 0.5853 GB, free: 10.23 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.156e-05/0.5462, allocations: 16 kB / 0.5853 GB, free: 10.21 MB / 427.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002311/0.5486, allocations: 1.174 MB / 0.5865 GB, free: 8.984 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.5486, allocations: 8.031 kB / 0.5865 GB, free: 8.977 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006873/0.5493, allocations: 146.8 kB / 0.5866 GB, free: 8.832 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002927/0.5522, allocations: 1.246 MB / 0.5879 GB, free: 7.543 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/0.5525, allocations: 151.1 kB / 0.588 GB, free: 7.375 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.5526, allocations: 48 kB / 0.588 GB, free: 7.328 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001525/0.5541, allocations: 1.039 MB / 0.5891 GB, free: 6.289 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.5558, allocations: 1.166 MB / 0.5902 GB, free: 5.055 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.5558, allocations: 7.938 kB / 0.5902 GB, free: 5.047 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.68e-05/0.5559, allocations: 0 / 0.5902 GB, free: 5.047 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.161e-05/0.556, allocations: 57.98 kB / 0.5903 GB, free: 4.992 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006649/0.5627, allocations: 4.788 MB / 0.5949 GB, free: 56 kB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.5639, allocations: 0.9302 MB / 0.5958 GB, free: 15.09 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007247/0.5647, allocations: 0.5427 MB / 0.5964 GB, free: 14.54 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.257e-05/0.5647, allocations: 12.55 kB / 0.5964 GB, free: 14.53 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.5648, allocations: 51.08 kB / 0.5964 GB, free: 14.47 MB / 443.1 MB Notification: Performance of pre-optimization done (n=74): time 3.477e-06/0.5648, allocations: 0 / 0.5964 GB, free: 14.47 MB / 443.1 MB Notification: Performance of matching and sorting (n=75): time 0.00348/0.5683, allocations: 2.297 MB / 0.5987 GB, free: 12.1 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.5683, allocations: 89.66 kB / 0.5988 GB, free: 11.99 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.5687, allocations: 333.1 kB / 0.5991 GB, free: 11.66 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 4.917e-05/0.5687, allocations: 33.67 kB / 0.5991 GB, free: 11.62 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/0.569, allocations: 391.2 kB / 0.5995 GB, free: 11.23 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.5692, allocations: 260.2 kB / 0.5997 GB, free: 10.98 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.199e-05/0.5692, allocations: 0 / 0.5997 GB, free: 10.98 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.5694, allocations: 370.8 kB / 0.6001 GB, free: 10.61 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005384/0.5699, allocations: 437.9 kB / 0.6005 GB, free: 10.18 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006538/0.5706, allocations: 0.6008 MB / 0.6011 GB, free: 9.504 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006814/0.5713, allocations: 0.5117 MB / 0.6016 GB, free: 8.992 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5713, allocations: 0 / 0.6016 GB, free: 8.992 MB / 443.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003315/0.5746, allocations: 1.8 MB / 0.6034 GB, free: 7.16 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.5746, allocations: 8 kB / 0.6034 GB, free: 7.152 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002896/0.5775, allocations: 1.582 MB / 0.6049 GB, free: 5.543 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.5787, allocations: 0.5325 MB / 0.6054 GB, free: 5.004 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005966/0.5793, allocations: 151.8 kB / 0.6056 GB, free: 4.855 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007077/0.5864, allocations: 5.917 MB / 0.6113 GB, free: 14.71 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007709/0.5872, allocations: 72.03 kB / 0.6114 GB, free: 14.64 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.251e-05/0.5873, allocations: 32 kB / 0.6114 GB, free: 14.61 MB / 459.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (76): * Single equations (assignments): 72 * Array equations: 2 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {4 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.5875, allocations: 116.8 kB / 0.6116 GB, free: 14.48 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.5876, allocations: 59.2 kB / 0.6116 GB, free: 14.43 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.5894, allocations: 1.125 MB / 0.6127 GB, free: 13.27 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-05/0.5894, allocations: 19.98 kB / 0.6127 GB, free: 13.25 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.5894, allocations: 0 / 0.6127 GB, free: 13.25 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.5894, allocations: 0 / 0.6127 GB, free: 13.25 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.5926, allocations: 2.162 MB / 0.6148 GB, free: 11.01 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.5927, allocations: 4 kB / 0.6148 GB, free: 11.01 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002942/0.5956, allocations: 0.6322 MB / 0.6155 GB, free: 10.38 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.533e-05/0.5957, allocations: 24.8 kB / 0.6155 GB, free: 10.35 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.044e-05/0.5958, allocations: 15.98 kB / 0.6155 GB, free: 10.33 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008656/0.5966, allocations: 1.333 MB / 0.6168 GB, free: 8.883 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5967, allocations: 0 / 0.6168 GB, free: 8.883 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.599, allocations: 1.852 MB / 0.6186 GB, free: 6.957 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/0.5992, allocations: 124.4 kB / 0.6187 GB, free: 6.816 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.224e-05/0.5993, allocations: 7.953 kB / 0.6187 GB, free: 6.809 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005381/0.5998, allocations: 67.91 kB / 0.6188 GB, free: 6.742 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.6, allocations: 68.41 kB / 0.6189 GB, free: 6.676 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-05/0.6, allocations: 16 kB / 0.6189 GB, free: 6.66 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0002766/0.6003, allocations: 247 kB / 0.6191 GB, free: 6.418 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6003, allocations: 0 / 0.6191 GB, free: 6.418 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.000946/0.6013, allocations: 227.9 kB / 0.6193 GB, free: 6.195 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 62 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002763/0.6015, allocations: 144.9 kB / 0.6195 GB, free: 6.047 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.6036, allocations: 1.377 MB / 0.6208 GB, free: 4.645 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.6036, allocations: 0 / 0.6208 GB, free: 4.645 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002484/0.6061, allocations: 1.059 MB / 0.6219 GB, free: 3.578 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/0.6067, allocations: 101.8 kB / 0.622 GB, free: 3.48 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003097/0.6098, allocations: 1.878 MB / 0.6238 GB, free: 1.559 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006222/0.6105, allocations: 1.087 MB / 0.6248 GB, free: 452 kB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0005636/0.611, allocations: 201.1 kB / 0.625 GB, free: 248 kB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.6112, allocations: 51.42 kB / 0.6251 GB, free: 196 kB / 459.1 MB Notification: Performance of SimCode: time 3.61e-07/0.6113, allocations: 0 / 0.6251 GB, free: 196 kB / 459.1 MB Notification: Performance of Templates: time 0.01656/0.6278, allocations: 10.92 MB / 0.6358 GB, free: 5.27 MB / 475.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Rectifier.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches