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.001246/0.001246, allocations: 175.2 kB / 17.4 MB, free: 4.422 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.504/1.504, allocations: 205.4 MB / 223.5 MB, free: 9.02 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.0006912/0.0006912, allocations: 78.42 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1743/0.1743, allocations: 38.07 MB / 358.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003666, allocations: 12 kB / 425.3 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3188, allocations: 56.31 MB / 481.6 MB, free: 9.613 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.4583, allocations: 102.3 MB / 0.5701 GB, free: 4 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.4586, allocations: 99.8 kB / 0.5702 GB, free: 15.91 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04158/0.5002, allocations: 14.33 MB / 0.5842 GB, free: 1.426 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5003, allocations: 3.938 kB / 0.5842 GB, free: 1.422 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.616e-05/0.5003, allocations: 32.09 kB / 0.5843 GB, free: 1.391 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.002566/0.5029, allocations: 1.026 MB / 0.5853 GB, free: 308 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.503, allocations: 8.031 kB / 0.5853 GB, free: 300 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000331/0.5033, allocations: 87.91 kB / 0.5854 GB, free: 212 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002254/0.5056, allocations: 0.8692 MB / 0.5862 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.5057, allocations: 113.3 kB / 0.5863 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001974/0.5059, allocations: 68.55 kB / 0.5864 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/0.5078, allocations: 0.8786 MB / 0.5872 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.5078, allocations: 0 / 0.5872 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.434e-05/0.5079, allocations: 24 kB / 0.5873 GB, free: 14.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.5079, allocations: 16 kB / 0.5873 GB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.5092, allocations: 0.6139 MB / 0.5879 GB, free: 13.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003982/0.5132, allocations: 2.758 MB / 0.5906 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.5148, allocations: 0.9044 MB / 0.5915 GB, free: 9.664 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005734/0.5154, allocations: 290.3 kB / 0.5917 GB, free: 9.375 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.5155, allocations: 4.328 kB / 0.5917 GB, free: 9.371 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006866/0.5161, allocations: 365.3 kB / 0.5921 GB, free: 8.996 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.756e-06/0.5162, allocations: 0 / 0.5921 GB, free: 8.996 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.003916/0.5201, allocations: 1.969 MB / 0.594 GB, free: 6.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.631e-05/0.5202, allocations: 118.7 kB / 0.5941 GB, free: 6.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006366/0.5208, allocations: 0.5027 MB / 0.5946 GB, free: 6.262 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.576e-05/0.5209, allocations: 41.7 kB / 0.5946 GB, free: 6.215 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002742/0.5212, allocations: 359.7 kB / 0.595 GB, free: 5.855 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.5213, allocations: 146 kB / 0.5951 GB, free: 5.711 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.5213, allocations: 12 kB / 0.5951 GB, free: 5.699 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.5215, allocations: 378.6 kB / 0.5955 GB, free: 5.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/0.5218, allocations: 217.1 kB / 0.5957 GB, free: 5.109 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004317/0.5223, allocations: 386.2 kB / 0.5961 GB, free: 4.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007715/0.5231, allocations: 0.602 MB / 0.5967 GB, free: 3.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.5231, allocations: 0 / 0.5967 GB, free: 3.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001203/0.5243, allocations: 0.8553 MB / 0.5975 GB, free: 3.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.903e-05/0.5244, allocations: 52.03 kB / 0.5976 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.5244, allocations: 8.031 kB / 0.5976 GB, free: 3.027 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/0.5246, allocations: 77.61 kB / 0.5976 GB, free: 2.945 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.525, allocations: 107.8 kB / 0.5977 GB, free: 2.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.5274, allocations: 2.845 MB / 0.6005 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004099/0.5279, allocations: 39.88 kB / 0.6006 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.968e-05/0.528, allocations: 35.98 kB / 0.6006 GB, free: 15.65 MB / 442.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.0004937/0.5285, allocations: 281.3 kB / 0.6009 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.352e-05/0.5286, allocations: 59.34 kB / 0.6009 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/0.53, allocations: 0.7002 MB / 0.6016 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.53, allocations: 8 kB / 0.6016 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.53, allocations: 0 / 0.6016 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.53, allocations: 0 / 0.6016 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002374/0.5324, allocations: 1.535 MB / 0.6031 GB, free: 12.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.5324, allocations: 0 / 0.6031 GB, free: 12.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002918/0.5327, allocations: 63.91 kB / 0.6032 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/0.5329, allocations: 77.56 kB / 0.6032 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/0.533, allocations: 11.98 kB / 0.6032 GB, free: 12.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002355/0.5353, allocations: 2.841 MB / 0.606 GB, free: 9.676 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5354, allocations: 0 / 0.606 GB, free: 9.676 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002023/0.5374, allocations: 1.055 MB / 0.6071 GB, free: 8.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.5377, allocations: 172.4 kB / 0.6072 GB, free: 8.383 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.5378, allocations: 27.98 kB / 0.6072 GB, free: 8.355 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003905/0.5382, allocations: 43.95 kB / 0.6073 GB, free: 8.312 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.909e-05/0.5383, allocations: 35.89 kB / 0.6073 GB, free: 8.277 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.441e-05/0.5384, allocations: 19.98 kB / 0.6073 GB, free: 8.258 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005468/0.5389, allocations: 350.8 kB / 0.6077 GB, free: 7.918 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.539, allocations: 3.938 kB / 0.6077 GB, free: 7.914 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008802/0.5398, allocations: 152 kB / 0.6078 GB, free: 7.766 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.0002334/0.5401, allocations: 131.7 kB / 0.6079 GB, free: 7.629 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.5417, allocations: 0.9059 MB / 0.6088 GB, free: 6.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5417, allocations: 0 / 0.6088 GB, free: 6.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008173/0.5425, allocations: 0.502 MB / 0.6093 GB, free: 6.152 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008588/0.5434, allocations: 138.2 kB / 0.6095 GB, free: 6.016 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.5464, allocations: 1.81 MB / 0.6112 GB, free: 4.164 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007783/0.5472, allocations: 0.9682 MB / 0.6122 GB, free: 3.168 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004159/0.5477, allocations: 104.9 kB / 0.6123 GB, free: 3.062 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.5478, allocations: 47.44 kB / 0.6123 GB, free: 3.016 MB / 442.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5478, allocations: 0 / 0.6123 GB, free: 3.016 MB / 442.7 MB Notification: Performance of Templates: time 0.01353/0.5613, allocations: 6.814 MB / 0.619 GB, free: 12.22 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/jenkins1/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