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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001007/0.001007, allocations: 182.7 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 100.1 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1645/0.1645, allocations: 38.05 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002811/0.0002811, allocations: 8 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2588, allocations: 56.31 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.3922, allocations: 102.2 MB / 0.5689 GB, free: 180 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.3925, allocations: 95.95 kB / 0.569 GB, free: 84 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03926/0.4318, allocations: 14.37 MB / 0.583 GB, free: 1.562 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.4318, allocations: 0 / 0.583 GB, free: 1.562 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.407e-05/0.4319, allocations: 20 kB / 0.583 GB, free: 1.543 MB / 410.7 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.001988/0.4339, allocations: 1.042 MB / 0.584 GB, free: 444 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.4339, allocations: 12.03 kB / 0.5841 GB, free: 432 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002076/0.4341, allocations: 90.92 kB / 0.5841 GB, free: 340 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00301/0.4371, allocations: 1.184 MB / 0.5853 GB, free: 15.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/0.4373, allocations: 116.7 kB / 0.5854 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.4374, allocations: 64 kB / 0.5855 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.439, allocations: 0.8672 MB / 0.5863 GB, free: 14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.439, allocations: 7.938 kB / 0.5863 GB, free: 13.99 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-05/0.4391, allocations: 24 kB / 0.5863 GB, free: 13.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.4391, allocations: 27.77 kB / 0.5864 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.4403, allocations: 0.6139 MB / 0.587 GB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003602/0.4439, allocations: 2.758 MB / 0.5897 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.4456, allocations: 0.9088 MB / 0.5906 GB, free: 9.469 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.4456, allocations: 8.391 kB / 0.5906 GB, free: 9.461 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000692/0.4463, allocations: 354.6 kB / 0.5909 GB, free: 9.094 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.524e-06/0.4463, allocations: 0 / 0.5909 GB, free: 9.094 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.003927/0.4503, allocations: 1.965 MB / 0.5928 GB, free: 7.012 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.079e-05/0.4504, allocations: 114.8 kB / 0.5929 GB, free: 6.875 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005623/0.4509, allocations: 461.9 kB / 0.5934 GB, free: 6.414 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/0.451, allocations: 37.7 kB / 0.5934 GB, free: 6.371 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/0.4513, allocations: 363.7 kB / 0.5938 GB, free: 6.012 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.4514, allocations: 138.1 kB / 0.5939 GB, free: 5.875 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.4514, allocations: 12 kB / 0.5939 GB, free: 5.863 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.4516, allocations: 374.7 kB / 0.5943 GB, free: 5.488 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003189/0.4519, allocations: 201.1 kB / 0.5944 GB, free: 5.293 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000382/0.4523, allocations: 362.2 kB / 0.5948 GB, free: 4.863 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003811/0.4527, allocations: 298.3 kB / 0.5951 GB, free: 4.566 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4527, allocations: 0 / 0.5951 GB, free: 4.566 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001126/0.4539, allocations: 0.828 MB / 0.5959 GB, free: 3.699 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.398e-05/0.4539, allocations: 56.19 kB / 0.5959 GB, free: 3.641 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4539, allocations: 8 kB / 0.5959 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002197/0.4542, allocations: 69.67 kB / 0.596 GB, free: 3.559 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003894/0.4546, allocations: 107.8 kB / 0.5961 GB, free: 3.453 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002152/0.4567, allocations: 2.86 MB / 0.5989 GB, free: 332 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004177/0.4572, allocations: 39.86 kB / 0.5989 GB, free: 292 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-05/0.4572, allocations: 51.91 kB / 0.599 GB, free: 240 kB / 426.7 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,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004222/0.4577, allocations: 273.6 kB / 0.5993 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.685e-05/0.4578, allocations: 55.3 kB / 0.5993 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/0.4592, allocations: 0.6926 MB / 0.6 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.4592, allocations: 4 kB / 0.6 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4592, allocations: 0 / 0.6 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.4592, allocations: 7.984 kB / 0.6 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/0.4617, allocations: 1.538 MB / 0.6015 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.4617, allocations: 0 / 0.6015 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.4621, allocations: 71.83 kB / 0.6016 GB, free: 13.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001899/0.4623, allocations: 69.67 kB / 0.6016 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.237e-05/0.4623, allocations: 11.98 kB / 0.6016 GB, free: 13.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002015/0.4643, allocations: 2.854 MB / 0.6044 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4644, allocations: 3.938 kB / 0.6044 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001996/0.4664, allocations: 1.091 MB / 0.6055 GB, free: 9.094 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002527/0.4666, allocations: 172.3 kB / 0.6057 GB, free: 8.906 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.779e-05/0.4667, allocations: 27.98 kB / 0.6057 GB, free: 8.879 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003854/0.4671, allocations: 51.94 kB / 0.6057 GB, free: 8.828 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.836e-05/0.4672, allocations: 27.97 kB / 0.6058 GB, free: 8.801 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.348e-05/0.4672, allocations: 19.98 kB / 0.6058 GB, free: 8.781 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003863/0.4676, allocations: 354.8 kB / 0.6061 GB, free: 8.438 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4676, allocations: 0 / 0.6061 GB, free: 8.438 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006366/0.4683, allocations: 155.9 kB / 0.6063 GB, free: 8.285 MB / 442.7 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 (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001858/0.4685, allocations: 138.4 kB / 0.6064 GB, free: 8.141 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001462/0.4699, allocations: 0.8819 MB / 0.6073 GB, free: 7.219 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.47, allocations: 1.375 kB / 0.6073 GB, free: 7.219 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008403/0.4708, allocations: 0.5052 MB / 0.6078 GB, free: 6.688 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006364/0.4715, allocations: 138.2 kB / 0.6079 GB, free: 6.555 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00253/0.474, allocations: 1.791 MB / 0.6096 GB, free: 4.723 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000571/0.4746, allocations: 0.9837 MB / 0.6106 GB, free: 3.711 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003391/0.4749, allocations: 112.9 kB / 0.6107 GB, free: 3.602 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.475, allocations: 43.44 kB / 0.6108 GB, free: 3.562 MB / 442.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4751, allocations: 0 / 0.6108 GB, free: 3.562 MB / 442.7 MB Notification: Performance of Templates: time 0.01177/0.4868, allocations: 6.734 MB / 0.6173 GB, free: 12.84 MB / 458.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches