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.001492/0.001492, allocations: 110.2 kB / 17.75 MB, free: 5.336 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.001664/0.001664, allocations: 185.4 kB / 18.67 MB, free: 4.418 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.411/1.411, allocations: 222.9 MB / 242.4 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.1913/0.1913, allocations: 38.04 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.91 kB / 458.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2915, allocations: 58.06 MB / 0.5048 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006234/0.2978, allocations: 6.486 MB / 0.5111 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002255/0.3, allocations: 1.332 MB / 0.5124 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003615/0.3004, allocations: 23.81 kB / 0.5124 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003288/0.3008, allocations: 126.1 kB / 0.5126 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009181/0.3017, allocations: 425.6 kB / 0.513 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004898/0.3022, allocations: 224.1 kB / 0.5132 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00108/0.3033, allocations: 1.116 MB / 0.5143 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000471/0.3038, allocations: 405.8 kB / 0.5147 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007224/0.3045, allocations: 0.5079 MB / 0.5152 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007431/0.3053, allocations: 0.5318 MB / 0.5157 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001221/0.3054, allocations: 65.62 kB / 0.5157 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.3056, allocations: 65.66 kB / 0.5158 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003313/0.3059, allocations: 336.5 kB / 0.5161 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003705/0.3063, allocations: 400.8 kB / 0.5165 GB, free: 412 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009779/0.3073, allocations: 0.912 MB / 0.5174 GB, free: 56 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3073, allocations: 1.344 kB / 0.5174 GB, free: 56 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3073, allocations: 0 / 0.5174 GB, free: 56 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.3073, allocations: 0 / 0.5174 GB, free: 56 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.002264/0.3096, allocations: 1.149 MB / 0.5185 GB, free: 15.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.3097, allocations: 13.41 kB / 0.5185 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.3098, allocations: 84.12 kB / 0.5186 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.3109, allocations: 0.6065 MB / 0.5192 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.311, allocations: 122.2 kB / 0.5193 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.3112, allocations: 67.56 kB / 0.5194 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.3127, allocations: 0.8677 MB / 0.5202 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.3127, allocations: 6.062 kB / 0.5202 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-05/0.3128, allocations: 30.84 kB / 0.5203 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/0.313, allocations: 39.09 kB / 0.5203 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.3142, allocations: 0.6208 MB / 0.5209 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003799/0.318, allocations: 2.731 MB / 0.5236 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.3197, allocations: 0.9018 MB / 0.5245 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007336/0.3204, allocations: 325.8 kB / 0.5248 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.3205, allocations: 4.609 kB / 0.5248 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007531/0.3212, allocations: 347.6 kB / 0.5251 GB, free: 11.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.595e-06/0.3212, allocations: 0 / 0.5251 GB, free: 11.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004505/0.3257, allocations: 1.975 MB / 0.527 GB, free: 10.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.3258, allocations: 114.6 kB / 0.5271 GB, free: 10.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006983/0.3265, allocations: 0.5083 MB / 0.5276 GB, free: 9.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.433e-05/0.3266, allocations: 39.36 kB / 0.5277 GB, free: 9.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002964/0.3269, allocations: 358.5 kB / 0.528 GB, free: 9.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.3271, allocations: 146.5 kB / 0.5282 GB, free: 9.547 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.3273, allocations: 116.8 kB / 0.5283 GB, free: 9.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3274, allocations: 373.1 kB / 0.5286 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003726/0.3278, allocations: 222 kB / 0.5288 GB, free: 9.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.3283, allocations: 394.1 kB / 0.5292 GB, free: 8.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008234/0.3291, allocations: 0.6227 MB / 0.5298 GB, free: 8.379 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.3291, allocations: 1.562 kB / 0.5298 GB, free: 8.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00137/0.3305, allocations: 0.8936 MB / 0.5307 GB, free: 7.926 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.44e-05/0.3306, allocations: 54.45 kB / 0.5307 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.3306, allocations: 8.312 kB / 0.5308 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003176/0.3309, allocations: 91.83 kB / 0.5308 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004144/0.3313, allocations: 107.2 kB / 0.5309 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/0.3344, allocations: 3.261 MB / 0.5341 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004964/0.3349, allocations: 36.89 kB / 0.5342 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.52e-05/0.335, allocations: 40.94 kB / 0.5342 GB, free: 4.66 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.000491/0.3355, allocations: 269.9 kB / 0.5345 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.3357, allocations: 54.25 kB / 0.5345 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001659/0.3373, allocations: 0.7061 MB / 0.5352 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.3374, allocations: 0 / 0.5352 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3374, allocations: 1.156 kB / 0.5352 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003628/0.3377, allocations: 181.4 kB / 0.5354 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.3379, allocations: 26.39 kB / 0.5354 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.3383, allocations: 47.72 kB / 0.5354 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.42e-05/0.3384, allocations: 30.86 kB / 0.5355 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001821/0.3402, allocations: 0.8657 MB / 0.5363 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001965/0.3422, allocations: 1.134 MB / 0.5374 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005282/0.3427, allocations: 244.2 kB / 0.5377 GB, free: 2.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004809/0.3432, allocations: 360.9 kB / 0.538 GB, free: 2.102 MB / 398.1 MB Notification: Performance of Backend: time 3.51e-07/0.3432, allocations: 0 / 0.538 GB, free: 2.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.3449, allocations: 0.7995 MB / 0.5388 GB, free: 1.516 MB / 398.1 MB Notification: Performance of SimCode: time 0.00272/0.3477, allocations: 1.872 MB / 0.5406 GB, free: 148 kB / 398.1 MB Notification: Performance of Templates: time 0.01503/0.3627, allocations: 7.973 MB / 0.5484 GB, free: 10.81 MB / 414.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