Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.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.Elementary.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.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.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.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001992/0.001992, allocations: 113.8 kB / 17.06 MB, free: 6.012 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.002122/0.002122, allocations: 191 kB / 18 MB, free: 5.098 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.446/1.446, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1772/0.1772, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 59.91 kB / 458.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4181, allocations: 58.05 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.008006/0.4262, allocations: 6.334 MB / 0.5103 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00274/0.429, allocations: 1.449 MB / 0.5117 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003848/0.4294, allocations: 22.94 kB / 0.5117 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005437/0.4299, allocations: 148.1 kB / 0.5119 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008943/0.4309, allocations: 425.9 kB / 0.5123 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005663/0.4315, allocations: 205 kB / 0.5125 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001513/0.433, allocations: 1.127 MB / 0.5136 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000565/0.4336, allocations: 355.2 kB / 0.5139 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008219/0.4344, allocations: 481.1 kB / 0.5144 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.4355, allocations: 0.5322 MB / 0.5149 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.4357, allocations: 65.56 kB / 0.515 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002085/0.4359, allocations: 69.75 kB / 0.515 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004856/0.4364, allocations: 309.8 kB / 0.5153 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005068/0.4369, allocations: 370.7 kB / 0.5157 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001601/0.4385, allocations: 0.883 MB / 0.5165 GB, free: 184 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.4385, allocations: 1.312 kB / 0.5165 GB, free: 184 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4385, allocations: 4 kB / 0.5165 GB, free: 180 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.799e-05/0.4385, allocations: 0 / 0.5165 GB, free: 180 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002475/0.441, allocations: 1.041 MB / 0.5176 GB, free: 15.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.4411, allocations: 9.844 kB / 0.5176 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.4412, allocations: 78.56 kB / 0.5176 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.4424, allocations: 0.5924 MB / 0.5182 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.4426, allocations: 126.7 kB / 0.5183 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.4427, allocations: 53.19 kB / 0.5184 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.4445, allocations: 0.7819 MB / 0.5192 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.4445, allocations: 3.984 kB / 0.5192 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.005e-05/0.4446, allocations: 26.44 kB / 0.5192 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000131/0.4448, allocations: 34.52 kB / 0.5192 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.4462, allocations: 0.6901 MB / 0.5199 GB, free: 14.36 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0047/0.4509, allocations: 2.701 MB / 0.5225 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.4528, allocations: 0.872 MB / 0.5234 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006071/0.4534, allocations: 333.1 kB / 0.5237 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.088e-05/0.4535, allocations: 8.828 kB / 0.5237 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.4535, allocations: 41.47 kB / 0.5237 GB, free: 12.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 4.829e-06/0.4535, allocations: 0 / 0.5237 GB, free: 12.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.004163/0.4577, allocations: 1.942 MB / 0.5256 GB, free: 10.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.4578, allocations: 89.42 kB / 0.5257 GB, free: 10.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005275/0.4583, allocations: 423.6 kB / 0.5261 GB, free: 10.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.989e-05/0.4583, allocations: 34.83 kB / 0.5262 GB, free: 10.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.4586, allocations: 320.9 kB / 0.5265 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.4587, allocations: 151.6 kB / 0.5266 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.4589, allocations: 84.19 kB / 0.5267 GB, free: 10.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.459, allocations: 362.6 kB / 0.527 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004715/0.4595, allocations: 235.6 kB / 0.5273 GB, free: 9.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005419/0.4601, allocations: 345.8 kB / 0.5276 GB, free: 9.625 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009905/0.4611, allocations: 0.5847 MB / 0.5282 GB, free: 9.309 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4611, allocations: 1.188 kB / 0.5282 GB, free: 9.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001454/0.4625, allocations: 0.7839 MB / 0.5289 GB, free: 8.938 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.4626, allocations: 8.203 kB / 0.5289 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.4626, allocations: 3.344 kB / 0.5289 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002851/0.4629, allocations: 78.97 kB / 0.529 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.4643, allocations: 288.1 kB / 0.5293 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006666/0.471, allocations: 6.515 MB / 0.5357 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005878/0.4716, allocations: 37.8 kB / 0.5357 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.129e-05/0.4717, allocations: 18.12 kB / 0.5357 GB, free: 2.516 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * 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.0005155/0.4722, allocations: 238.8 kB / 0.5359 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.4723, allocations: 53.98 kB / 0.536 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.4738, allocations: 0.7334 MB / 0.5367 GB, free: 1.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.4738, allocations: 4.281 kB / 0.5367 GB, free: 1.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4738, allocations: 2.281 kB / 0.5367 GB, free: 1.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.4738, allocations: 3.984 kB / 0.5367 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002791/0.4766, allocations: 1.504 MB / 0.5382 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.4767, allocations: 8.938 kB / 0.5382 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001556/0.4782, allocations: 292.9 kB / 0.5385 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002795/0.4785, allocations: 93.52 kB / 0.5386 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.623e-05/0.4786, allocations: 19.8 kB / 0.5386 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002488/0.4811, allocations: 3.161 MB / 0.5417 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4811, allocations: 0.9688 kB / 0.5417 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.4831, allocations: 1.119 MB / 0.5428 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.4834, allocations: 127 kB / 0.5429 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.084e-05/0.4835, allocations: 8.062 kB / 0.5429 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.4838, allocations: 35.83 kB / 0.5429 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.484, allocations: 36.77 kB / 0.543 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/0.484, allocations: 12.16 kB / 0.543 GB, free: 12.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003606/0.4844, allocations: 298.4 kB / 0.5433 GB, free: 12.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4844, allocations: 0 / 0.5433 GB, free: 12.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007898/0.4852, allocations: 137 kB / 0.5434 GB, free: 12.33 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (39): * Single equations (assignments): 36 * 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.0001828/0.4854, allocations: 112 kB / 0.5435 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002801/0.4882, allocations: 0.9879 MB / 0.5445 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.4882, allocations: 0 / 0.5445 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002059/0.4902, allocations: 0.737 MB / 0.5452 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.4914, allocations: 147 kB / 0.5453 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/0.4945, allocations: 1.433 MB / 0.5467 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007315/0.4953, allocations: 0.9434 MB / 0.5476 GB, free: 9.355 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000395/0.4957, allocations: 98.08 kB / 0.5477 GB, free: 9.316 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.4958, allocations: 36.88 kB / 0.5478 GB, free: 9.309 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4958, allocations: 1.312 kB / 0.5478 GB, free: 9.309 MB / 414.1 MB Notification: Performance of Templates: time 0.01625/0.5121, allocations: 7.786 MB / 0.5554 GB, free: 2.441 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches