Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Inverter,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.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,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.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 115.7 kB / 17.74 MB, free: 5.312 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.001578/0.001578, allocations: 185.6 kB / 18.67 MB, free: 4.395 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.425/1.425, 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.1833/0.1833, allocations: 38.04 MB / 330.6 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.91 kB / 458.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.357, allocations: 58.05 MB / 0.5048 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006634/0.3637, allocations: 6.489 MB / 0.5111 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002431/0.3661, allocations: 1.33 MB / 0.5124 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003557/0.3665, allocations: 24 kB / 0.5124 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003484/0.3669, allocations: 125.9 kB / 0.5126 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009333/0.3679, allocations: 427.2 kB / 0.513 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005076/0.3684, allocations: 222.5 kB / 0.5132 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001231/0.3696, allocations: 1.12 MB / 0.5143 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005208/0.3701, allocations: 402.4 kB / 0.5146 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008134/0.371, allocations: 0.5118 MB / 0.5151 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007816/0.3718, allocations: 0.5277 MB / 0.5157 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.3719, allocations: 69.12 kB / 0.5157 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.3721, allocations: 64.97 kB / 0.5158 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003712/0.3724, allocations: 334 kB / 0.5161 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003867/0.3728, allocations: 400.6 kB / 0.5165 GB, free: 424 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.374, allocations: 0.9131 MB / 0.5174 GB, free: 68 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.374, allocations: 0.6094 kB / 0.5174 GB, free: 68 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.374, allocations: 0 / 0.5174 GB, free: 68 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.374, allocations: 0 / 0.5174 GB, free: 68 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002289/0.3763, allocations: 1.148 MB / 0.5185 GB, free: 15.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.3764, allocations: 9.531 kB / 0.5185 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.3765, allocations: 84.81 kB / 0.5186 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.3775, allocations: 0.6137 MB / 0.5192 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.3777, allocations: 118.4 kB / 0.5193 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.3778, allocations: 63.83 kB / 0.5194 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.3795, allocations: 0.8698 MB / 0.5202 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.3795, allocations: 3.938 kB / 0.5202 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.024e-05/0.3796, allocations: 26.62 kB / 0.5202 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/0.3797, allocations: 39.88 kB / 0.5203 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.3809, allocations: 0.6152 MB / 0.5209 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003912/0.3849, allocations: 2.747 MB / 0.5236 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.3866, allocations: 0.8962 MB / 0.5244 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007315/0.3873, allocations: 321.5 kB / 0.5248 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/0.3873, allocations: 4.453 kB / 0.5248 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007426/0.3881, allocations: 345.1 kB / 0.5251 GB, free: 11.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.144e-06/0.3881, allocations: 4 kB / 0.5251 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004543/0.3927, allocations: 1.97 MB / 0.527 GB, free: 10.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.189e-05/0.3928, allocations: 127 kB / 0.5271 GB, free: 10.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007115/0.3935, allocations: 0.5081 MB / 0.5276 GB, free: 9.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.056e-05/0.3935, allocations: 38.95 kB / 0.5277 GB, free: 9.953 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003255/0.3939, allocations: 353.8 kB / 0.528 GB, free: 9.672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.394, allocations: 143.6 kB / 0.5281 GB, free: 9.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/0.3942, allocations: 121.6 kB / 0.5283 GB, free: 9.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3944, allocations: 372.1 kB / 0.5286 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.3948, allocations: 222.9 kB / 0.5288 GB, free: 9.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004578/0.3952, allocations: 389.8 kB / 0.5292 GB, free: 8.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000814/0.3961, allocations: 0.6225 MB / 0.5298 GB, free: 8.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.3961, allocations: 2.031 kB / 0.5298 GB, free: 8.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001329/0.3974, allocations: 0.8957 MB / 0.5307 GB, free: 7.938 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.571e-05/0.3975, allocations: 50.95 kB / 0.5307 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3975, allocations: 6.531 kB / 0.5307 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003062/0.3978, allocations: 90.31 kB / 0.5308 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004034/0.3982, allocations: 107 kB / 0.5309 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/0.401, allocations: 3.264 MB / 0.5341 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004615/0.4014, allocations: 36.02 kB / 0.5341 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-05/0.4015, allocations: 46.22 kB / 0.5342 GB, free: 4.691 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005044/0.4021, allocations: 265.8 kB / 0.5344 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.846e-05/0.4022, allocations: 62.48 kB / 0.5345 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.4037, allocations: 0.7012 MB / 0.5352 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.4037, allocations: 5.031 kB / 0.5352 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4037, allocations: 1.156 kB / 0.5352 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4038, allocations: 5.453 kB / 0.5352 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002781/0.4065, allocations: 1.535 MB / 0.5367 GB, free: 2.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.4066, allocations: 5.031 kB / 0.5367 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/0.4069, allocations: 64.83 kB / 0.5368 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003178/0.4072, allocations: 91.22 kB / 0.5369 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.423e-05/0.4073, allocations: 17.77 kB / 0.5369 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/0.41, allocations: 3.253 MB / 0.54 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.41, allocations: 5.031 kB / 0.54 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.4122, allocations: 1.067 MB / 0.5411 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.4125, allocations: 169 kB / 0.5413 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.4126, allocations: 31.45 kB / 0.5413 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004162/0.413, allocations: 39.06 kB / 0.5413 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.729e-05/0.4131, allocations: 41.48 kB / 0.5414 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.715e-05/0.4132, allocations: 17.89 kB / 0.5414 GB, free: 14.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004741/0.4137, allocations: 351.9 kB / 0.5417 GB, free: 14.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4137, allocations: 1.094 kB / 0.5417 GB, free: 14.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008182/0.4145, allocations: 149.4 kB / 0.5419 GB, free: 14.46 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: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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,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.0001918/0.4147, allocations: 126.6 kB / 0.542 GB, free: 14.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.4163, allocations: 0.9187 MB / 0.5429 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.4163, allocations: 0 / 0.5429 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009305/0.4173, allocations: 0.4893 MB / 0.5434 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008268/0.4181, allocations: 156.7 kB / 0.5435 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.4209, allocations: 1.537 MB / 0.545 GB, free: 12.31 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006036/0.4216, allocations: 0.9713 MB / 0.5459 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.4217, allocations: 46.09 kB / 0.546 GB, free: 11.46 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4217, allocations: 0 / 0.546 GB, free: 11.46 MB / 414.1 MB Notification: Performance of Templates: time 0.01829/0.44, allocations: 13.51 MB / 0.5592 GB, free: 15.32 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches