Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 111.8 kB / 17.74 MB, free: 5.359 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.001067/0.001068, allocations: 181.5 kB / 18.66 MB, free: 4.441 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.311/1.311, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1706/0.1706, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 71.88 kB / 458.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3028, allocations: 58.05 MB / 0.5048 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.006444/0.3093, allocations: 6.261 MB / 0.5109 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.3115, allocations: 1.424 MB / 0.5123 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002909/0.3118, allocations: 26.28 kB / 0.5123 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004563/0.3123, allocations: 139.8 kB / 0.5124 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007794/0.3131, allocations: 412.2 kB / 0.5128 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.3136, allocations: 192.9 kB / 0.513 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001233/0.3148, allocations: 1.088 MB / 0.5141 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004582/0.3153, allocations: 350.3 kB / 0.5144 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008054/0.3161, allocations: 478.1 kB / 0.5149 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007759/0.3169, allocations: 0.5222 MB / 0.5154 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.317, allocations: 64.97 kB / 0.5154 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.3172, allocations: 65.22 kB / 0.5155 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003239/0.3175, allocations: 308.7 kB / 0.5158 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003575/0.3179, allocations: 361 kB / 0.5161 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009875/0.3189, allocations: 0.8407 MB / 0.5169 GB, free: 388 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3189, allocations: 0.5938 kB / 0.5169 GB, free: 388 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3189, allocations: 4 kB / 0.517 GB, free: 384 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.3189, allocations: 1.406 kB / 0.517 GB, free: 384 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002225/0.3211, allocations: 1.014 MB / 0.5179 GB, free: 15.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3212, allocations: 9.062 kB / 0.518 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.3214, allocations: 72.41 kB / 0.518 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.3225, allocations: 0.5769 MB / 0.5186 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.3227, allocations: 118.1 kB / 0.5187 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.3228, allocations: 59.47 kB / 0.5188 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3242, allocations: 0.7728 MB / 0.5195 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.3243, allocations: 4.969 kB / 0.5195 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.43e-05/0.3243, allocations: 21.66 kB / 0.5195 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.3245, allocations: 35.12 kB / 0.5196 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.3259, allocations: 0.7295 MB / 0.5203 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00404/0.3299, allocations: 2.593 MB / 0.5228 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.3315, allocations: 0.8021 MB / 0.5236 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006764/0.3322, allocations: 400 kB / 0.524 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.3322, allocations: 10.62 kB / 0.524 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.3323, allocations: 38.55 kB / 0.524 GB, free: 12.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.535e-06/0.3323, allocations: 0 / 0.524 GB, free: 12.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.004187/0.3365, allocations: 2.139 MB / 0.5261 GB, free: 11.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.3365, allocations: 83.48 kB / 0.5262 GB, free: 11.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004299/0.337, allocations: 394 kB / 0.5266 GB, free: 10.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.678e-05/0.337, allocations: 39.64 kB / 0.5266 GB, free: 10.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.3372, allocations: 287 kB / 0.5269 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.3374, allocations: 179.2 kB / 0.527 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.3375, allocations: 104.2 kB / 0.5271 GB, free: 10.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3377, allocations: 367.2 kB / 0.5275 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00055/0.3383, allocations: 271.9 kB / 0.5278 GB, free: 10.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000604/0.3389, allocations: 381.2 kB / 0.5281 GB, free: 9.879 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.34, allocations: 0.6495 MB / 0.5288 GB, free: 9.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.34, allocations: 1.156 kB / 0.5288 GB, free: 9.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001518/0.3415, allocations: 0.8763 MB / 0.5296 GB, free: 9.145 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.3416, allocations: 6.734 kB / 0.5296 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.3416, allocations: 3.312 kB / 0.5296 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002528/0.3418, allocations: 74.22 kB / 0.5297 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.3433, allocations: 310.3 kB / 0.53 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005614/0.349, allocations: 6.52 MB / 0.5364 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005178/0.3495, allocations: 39.64 kB / 0.5364 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.648e-05/0.3496, allocations: 27.03 kB / 0.5364 GB, free: 2.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003666/0.3499, allocations: 239.8 kB / 0.5366 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.36e-05/0.35, allocations: 50.59 kB / 0.5367 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.3515, allocations: 0.8227 MB / 0.5375 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.3516, allocations: 9.891 kB / 0.5375 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3516, allocations: 1.094 kB / 0.5375 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.3516, allocations: 3.984 kB / 0.5375 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002866/0.3545, allocations: 1.691 MB / 0.5392 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.3545, allocations: 2.438 kB / 0.5392 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001552/0.356, allocations: 318.5 kB / 0.5395 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002678/0.3563, allocations: 87.03 kB / 0.5396 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.513e-05/0.3564, allocations: 18.61 kB / 0.5396 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00221/0.3586, allocations: 3.161 MB / 0.5427 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.3586, allocations: 6.031 kB / 0.5427 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00214/0.3608, allocations: 1.312 MB / 0.5439 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001821/0.361, allocations: 128.3 kB / 0.5441 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.733e-05/0.3611, allocations: 22.06 kB / 0.5441 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003703/0.3614, allocations: 33.86 kB / 0.5441 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.3616, allocations: 53.05 kB / 0.5442 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/0.3616, allocations: 14.97 kB / 0.5442 GB, free: 12.49 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003253/0.3619, allocations: 277.3 kB / 0.5445 GB, free: 12.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.362, allocations: 5.094 kB / 0.5445 GB, free: 12.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007401/0.3627, allocations: 147 kB / 0.5446 GB, free: 12.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000135/0.3628, allocations: 113.4 kB / 0.5447 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.3654, allocations: 1.089 MB / 0.5458 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.289e-06/0.3654, allocations: 0 / 0.5458 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001853/0.3673, allocations: 0.7919 MB / 0.5465 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007697/0.3681, allocations: 132.8 kB / 0.5467 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003221/0.3713, allocations: 1.648 MB / 0.5483 GB, free: 9.945 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005657/0.3719, allocations: 0.9418 MB / 0.5492 GB, free: 9.125 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.3721, allocations: 47.19 kB / 0.5492 GB, free: 9.117 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3721, allocations: 0 / 0.5492 GB, free: 9.117 MB / 414.1 MB Notification: Performance of Templates: time 0.02028/0.3924, allocations: 16.75 MB / 0.5656 GB, free: 8.578 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches