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.001396/0.001396, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008077/0.0008077, allocations: 83.98 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1635/0.1635, allocations: 38 MB / 348.1 MB, free: 7.762 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.432e-05/1.434e-05, allocations: 0 / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 56.33 MB / 466.9 MB, free: 6.555 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3551/0.4635, allocations: 101.5 MB / 0.555 GB, free: 9.457 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.4638, allocations: 91.94 kB / 0.5551 GB, free: 9.367 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04029/0.5041, allocations: 14.23 MB / 0.569 GB, free: 11.01 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.5042, allocations: 0 / 0.569 GB, free: 11.01 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.265e-05/0.5042, allocations: 20 kB / 0.569 GB, free: 10.99 MB / 411.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.001601/0.5058, allocations: 0.9523 MB / 0.57 GB, free: 9.977 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.5059, allocations: 8.031 kB / 0.57 GB, free: 9.969 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/0.506, allocations: 90.92 kB / 0.5701 GB, free: 9.879 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003012/0.5091, allocations: 1.178 MB / 0.5712 GB, free: 8.66 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.5092, allocations: 92.7 kB / 0.5713 GB, free: 8.559 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.662e-05/0.5093, allocations: 40 kB / 0.5713 GB, free: 8.52 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008641/0.5102, allocations: 0.5024 MB / 0.5718 GB, free: 8.016 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.5113, allocations: 0.7325 MB / 0.5725 GB, free: 7.234 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.5113, allocations: 0 / 0.5725 GB, free: 7.234 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.5114, allocations: 7.953 kB / 0.5726 GB, free: 7.227 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.5114, allocations: 16 kB / 0.5726 GB, free: 7.211 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003564/0.515, allocations: 2.624 MB / 0.5751 GB, free: 4.492 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.5161, allocations: 0.7998 MB / 0.5759 GB, free: 3.602 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004166/0.5166, allocations: 246.4 kB / 0.5761 GB, free: 3.355 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.5166, allocations: 8.312 kB / 0.5762 GB, free: 3.348 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004316/0.5171, allocations: 286.7 kB / 0.5764 GB, free: 3.047 MB / 411.1 MB Notification: Performance of pre-optimization done (n=41): time 2.104e-06/0.5171, allocations: 0 / 0.5764 GB, free: 3.047 MB / 411.1 MB Notification: Performance of matching and sorting (n=42): time 0.002052/0.5191, allocations: 1.191 MB / 0.5776 GB, free: 1.797 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/0.5192, allocations: 110.8 kB / 0.5777 GB, free: 1.664 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004482/0.5197, allocations: 377 kB / 0.5781 GB, free: 1.293 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.5197, allocations: 29.7 kB / 0.5781 GB, free: 1.258 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000271/0.52, allocations: 367.5 kB / 0.5784 GB, free: 0.8906 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.5201, allocations: 134.1 kB / 0.5786 GB, free: 0.7578 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.5202, allocations: 4 kB / 0.5786 GB, free: 0.7539 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.5203, allocations: 362.8 kB / 0.5789 GB, free: 400 kB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.5206, allocations: 185.3 kB / 0.5791 GB, free: 212 kB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003775/0.521, allocations: 345.9 kB / 0.5794 GB, free: 15.8 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003488/0.5214, allocations: 236.6 kB / 0.5796 GB, free: 15.57 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5214, allocations: 0 / 0.5796 GB, free: 15.57 MB / 427.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009112/0.5223, allocations: 0.6174 MB / 0.5802 GB, free: 14.94 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.699e-05/0.5224, allocations: 45.69 kB / 0.5803 GB, free: 14.89 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.5224, allocations: 8 kB / 0.5803 GB, free: 14.88 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001932/0.5226, allocations: 52.77 kB / 0.5803 GB, free: 14.83 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004286/0.523, allocations: 111.8 kB / 0.5805 GB, free: 14.72 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.5243, allocations: 1.42 MB / 0.5818 GB, free: 13.19 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.5246, allocations: 19.98 kB / 0.5819 GB, free: 13.17 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-05/0.5247, allocations: 48.12 kB / 0.5819 GB, free: 13.12 MB / 427.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,$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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000159/0.5249, allocations: 124.8 kB / 0.582 GB, free: 12.99 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.239e-05/0.525, allocations: 63.28 kB / 0.5821 GB, free: 12.93 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007732/0.5258, allocations: 455.3 kB / 0.5825 GB, free: 12.47 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.5258, allocations: 4 kB / 0.5825 GB, free: 12.47 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.5258, allocations: 8 kB / 0.5825 GB, free: 12.46 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.5258, allocations: 3.984 kB / 0.5825 GB, free: 12.46 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001647/0.5275, allocations: 1.225 MB / 0.5837 GB, free: 11.17 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.5275, allocations: 4 kB / 0.5837 GB, free: 11.17 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003297/0.5278, allocations: 67.89 kB / 0.5838 GB, free: 11.1 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001389/0.528, allocations: 48.81 kB / 0.5838 GB, free: 11.05 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.528, allocations: 11.94 kB / 0.5839 GB, free: 11.04 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.5292, allocations: 1.412 MB / 0.5852 GB, free: 9.508 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.5292, allocations: 3.984 kB / 0.5852 GB, free: 9.504 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009955/0.5302, allocations: 0.793 MB / 0.586 GB, free: 8.664 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002056/0.5304, allocations: 164.4 kB / 0.5862 GB, free: 8.484 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.38e-05/0.5305, allocations: 23.98 kB / 0.5862 GB, free: 8.461 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.5309, allocations: 39.95 kB / 0.5862 GB, free: 8.422 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.448e-05/0.531, allocations: 31.95 kB / 0.5863 GB, free: 8.391 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-05/0.531, allocations: 19.94 kB / 0.5863 GB, free: 8.371 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002761/0.5313, allocations: 274.9 kB / 0.5865 GB, free: 8.105 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5313, allocations: 3.938 kB / 0.5865 GB, free: 8.102 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0005826/0.5319, allocations: 140 kB / 0.5867 GB, free: 7.965 MB / 427.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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001922/0.5321, allocations: 129 kB / 0.5868 GB, free: 7.828 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0009714/0.5331, allocations: 0.6712 MB / 0.5875 GB, free: 7.137 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5331, allocations: 0 / 0.5875 GB, free: 7.137 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004257/0.5335, allocations: 321.8 kB / 0.5878 GB, free: 6.812 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006214/0.5341, allocations: 99.11 kB / 0.5879 GB, free: 6.719 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.536, allocations: 1.08 MB / 0.5889 GB, free: 5.598 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006645/0.5367, allocations: 0.9835 MB / 0.5899 GB, free: 4.59 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0003329/0.537, allocations: 100.6 kB / 0.59 GB, free: 4.492 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.5371, allocations: 39.44 kB / 0.59 GB, free: 4.453 MB / 427.1 MB Notification: Performance of SimCode: time 2.7e-07/0.5371, allocations: 3.938 kB / 0.59 GB, free: 4.449 MB / 427.1 MB Notification: Performance of Templates: time 0.0105/0.5476, allocations: 5.558 MB / 0.5954 GB, free: 14.91 MB / 443.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/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