Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.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.Inverters.Rectifier,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p_av.1.|meterAC.p_av.2.|meterAC.p_av.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier") translateModel(PowerSystems.Examples.AC3ph.Inverters.Rectifier,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p_av.1.|meterAC.p_av.2.|meterAC.p_av.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.001836/0.001836, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.349/1.349, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1728/0.1728, allocations: 38.04 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 64.94 kB / 398.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1271, allocations: 58.07 MB / 456.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.008102/0.1353, allocations: 6.675 MB / 463.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003666/0.139, allocations: 2.126 MB / 465.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005498/0.1395, allocations: 23.88 kB / 465.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.1412, allocations: 0.5045 MB / 466.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001392/0.1426, allocations: 0.5639 MB / 466.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009369/0.1435, allocations: 359.3 kB / 467.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001849/0.1454, allocations: 1.286 MB / 468.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.147, allocations: 0.7324 MB / 469.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001507/0.1485, allocations: 0.541 MB / 469.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001593/0.1501, allocations: 0.7323 MB / 470.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002919/0.1504, allocations: 108 kB / 470.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.1516, allocations: 0.6396 MB / 471.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005743/0.1522, allocations: 482.9 kB / 471.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.1533, allocations: 0.5367 MB / 472.2 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001908/0.1552, allocations: 1.507 MB / 473.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.1552, allocations: 0 / 473.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1552, allocations: 3.938 kB / 473.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.516e-05/0.1553, allocations: 0 / 473.7 MB, free: 7.168 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.003648/0.1589, allocations: 1.364 MB / 475 MB, free: 5.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.159, allocations: 15.83 kB / 475 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009132/0.1599, allocations: 147.7 kB / 475.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.1614, allocations: 0.6608 MB / 475.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002585/0.1616, allocations: 175.6 kB / 476 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002339/0.1619, allocations: 83.94 kB / 476.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002396/0.1643, allocations: 1.41 MB / 477.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.1643, allocations: 0 / 477.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.1645, allocations: 39.92 kB / 477.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002746/0.1647, allocations: 85.94 kB / 477.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003002/0.1678, allocations: 1.515 MB / 479.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007823/0.1756, allocations: 4.443 MB / 483.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.178, allocations: 1.192 MB / 484.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00136/0.1794, allocations: 0.7739 MB / 485.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.221e-05/0.1795, allocations: 8.656 kB / 485.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.1795, allocations: 43.22 kB / 485.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 4.478e-06/0.1795, allocations: 0 / 485.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=102): time 0.007366/0.1869, allocations: 3.858 MB / 489.5 MB, free: 6.965 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.187, allocations: 94.14 kB / 489.6 MB, free: 6.855 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004884/0.1875, allocations: 397.9 kB / 490 MB, free: 6.457 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.749e-05/0.1876, allocations: 41.7 kB / 490 MB, free: 6.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002218/0.1878, allocations: 340.3 kB / 490.3 MB, free: 6.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002927/0.1881, allocations: 354.8 kB / 490.7 MB, free: 5.719 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002915/0.1884, allocations: 162.6 kB / 490.8 MB, free: 5.555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.1886, allocations: 378.8 kB / 491.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.1897, allocations: 0.5992 MB / 491.8 MB, free: 4.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.1909, allocations: 0.7386 MB / 492.5 MB, free: 3.789 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002288/0.1932, allocations: 1.383 MB / 493.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.1932, allocations: 7.938 kB / 493.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002717/0.196, allocations: 1.596 MB / 495.5 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.196, allocations: 8 kB / 495.5 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.196, allocations: 4 kB / 495.5 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001716/0.1962, allocations: 40.83 kB / 495.6 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00256/0.1988, allocations: 0.5072 MB / 496.1 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006998/0.2058, allocations: 6.686 MB / 0.491 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007342/0.2065, allocations: 83.88 kB / 0.4911 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.2066, allocations: 32.09 kB / 0.4911 GB, free: 8.812 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 97 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005083/0.2071, allocations: 320 kB / 0.4914 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/0.2074, allocations: 67.16 kB / 0.4915 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00284/0.2102, allocations: 1.6 MB / 0.493 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.643e-05/0.2103, allocations: 23.98 kB / 0.4931 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.2103, allocations: 4 kB / 0.4931 GB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.2103, allocations: 3.984 kB / 0.4931 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004688/0.215, allocations: 2.877 MB / 0.4959 GB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.215, allocations: 4 kB / 0.4959 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002903/0.2179, allocations: 0.5385 MB / 0.4964 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001279/0.2181, allocations: 32.84 kB / 0.4964 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.653e-05/0.2182, allocations: 23.98 kB / 0.4965 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.2194, allocations: 1.63 MB / 0.498 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.2194, allocations: 4.031 kB / 0.498 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004016/0.2234, allocations: 2.538 MB / 0.5005 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.2236, allocations: 136.2 kB / 0.5007 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.2238, allocations: 20.09 kB / 0.5007 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006543/0.2244, allocations: 75.91 kB / 0.5007 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.2247, allocations: 76.47 kB / 0.5008 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.889e-05/0.2247, allocations: 31.98 kB / 0.5009 GB, free: 14.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003224/0.2251, allocations: 275.1 kB / 0.5011 GB, free: 14.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2251, allocations: 0 / 0.5011 GB, free: 14.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001006/0.2261, allocations: 244.1 kB / 0.5013 GB, free: 13.95 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003869/0.2265, allocations: 170.9 kB / 0.5015 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00519/0.2317, allocations: 2.321 MB / 0.5038 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.2317, allocations: 0.5625 kB / 0.5038 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/0.2347, allocations: 1.205 MB / 0.505 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009423/0.2356, allocations: 151.8 kB / 0.5051 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005441/0.2411, allocations: 2.606 MB / 0.5076 GB, free: 7.426 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008029/0.2419, allocations: 1.08 MB / 0.5087 GB, free: 6.316 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008493/0.2428, allocations: 277.7 kB / 0.509 GB, free: 6.043 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/0.243, allocations: 59.44 kB / 0.509 GB, free: 5.984 MB / 398.1 MB Notification: Performance of SimCode: time 1.052e-06/0.243, allocations: 0 / 0.509 GB, free: 5.984 MB / 398.1 MB Notification: Performance of Templates: time 0.2215/0.4645, allocations: 10.72 MB / 0.5195 GB, free: 69.97 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.Rectifier.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches