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.00148/0.00148, allocations: 184.9 kB / 17.27 MB, free: 4.504 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.63/1.63, allocations: 205.1 MB / 223.1 MB, free: 8.457 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.001212/0.001212, allocations: 107.9 kB / 270.5 MB, free: 8.418 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2478/0.2478, allocations: 38.01 MB / 355.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 51.92 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3433, allocations: 55.25 MB / 477.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.008407/0.3518, allocations: 7.945 MB / 485.1 MB, free: 4.25 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003561/0.3554, allocations: 1.81 MB / 486.9 MB, free: 2.957 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007258/0.3561, allocations: 56.78 kB / 486.9 MB, free: 2.934 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000414/0.3565, allocations: 99.14 kB / 487 MB, free: 2.883 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.3578, allocations: 395 kB / 487.4 MB, free: 2.668 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007036/0.3586, allocations: 205.9 kB / 487.6 MB, free: 2.555 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002382/0.361, allocations: 1.649 MB / 489.3 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000656/0.3616, allocations: 331.5 kB / 489.6 MB, free: 1.898 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.3627, allocations: 438 kB / 490 MB, free: 1.719 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000966/0.3637, allocations: 0.5437 MB / 490.5 MB, free: 1.531 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.3638, allocations: 40.59 kB / 490.6 MB, free: 1.531 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.364, allocations: 41.78 kB / 490.6 MB, free: 1.531 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004113/0.3644, allocations: 322.8 kB / 490.9 MB, free: 1.422 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004402/0.3649, allocations: 380.1 kB / 491.3 MB, free: 1.211 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.366, allocations: 0.8781 MB / 492.2 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.366, allocations: 0 / 492.2 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.366, allocations: 0 / 492.2 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.3661, allocations: 1.188 kB / 492.2 MB, free: 0.8828 MB / 314.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.002368/0.3684, allocations: 1.152 MB / 493.3 MB, free: 84 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.3685, allocations: 10.27 kB / 493.4 MB, free: 84 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.3687, allocations: 83.34 kB / 493.4 MB, free: 44 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.3698, allocations: 0.5743 MB / 494 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.37, allocations: 122.4 kB / 494.1 MB, free: 15.56 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.3701, allocations: 64.14 kB / 494.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.372, allocations: 0.8637 MB / 495.1 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.3721, allocations: 1.094 kB / 495.1 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.815e-05/0.3721, allocations: 26.64 kB / 495.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001299/0.3723, allocations: 41.94 kB / 495.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.3737, allocations: 0.6262 MB / 495.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004397/0.3781, allocations: 2.755 MB / 498.5 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.3799, allocations: 0.9086 MB / 499.4 MB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007655/0.3806, allocations: 320.4 kB / 499.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.3807, allocations: 3.734 kB / 499.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007459/0.3814, allocations: 350.1 kB / 0.4884 GB, free: 11.87 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 2.816e-06/0.3814, allocations: 0 / 0.4884 GB, free: 11.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.004524/0.386, allocations: 1.976 MB / 0.4903 GB, free: 10.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.293e-05/0.3861, allocations: 114.7 kB / 0.4904 GB, free: 10.36 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007849/0.3869, allocations: 0.5082 MB / 0.4909 GB, free: 10.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.749e-05/0.3869, allocations: 39.2 kB / 0.4909 GB, free: 10.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003425/0.3873, allocations: 362.5 kB / 0.4913 GB, free: 9.695 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.3874, allocations: 144.8 kB / 0.4914 GB, free: 9.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/0.3876, allocations: 121.3 kB / 0.4915 GB, free: 9.496 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002368/0.3879, allocations: 366.2 kB / 0.4919 GB, free: 9.145 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004404/0.3883, allocations: 221.8 kB / 0.4921 GB, free: 9.039 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005009/0.3888, allocations: 389.5 kB / 0.4925 GB, free: 8.727 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008941/0.3898, allocations: 0.621 MB / 0.4931 GB, free: 8.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.3898, allocations: 5.438 kB / 0.4931 GB, free: 8.266 MB / 330.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001425/0.3912, allocations: 0.8975 MB / 0.4939 GB, free: 7.727 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.317e-05/0.3913, allocations: 48.53 kB / 0.494 GB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.3913, allocations: 5.438 kB / 0.494 GB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003146/0.3916, allocations: 92.44 kB / 0.4941 GB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/0.392, allocations: 110.4 kB / 0.4942 GB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/0.3946, allocations: 2.981 MB / 0.4971 GB, free: 4.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000421/0.3951, allocations: 27.64 kB / 0.4971 GB, free: 4.656 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.144e-05/0.3952, allocations: 46.22 kB / 0.4972 GB, free: 4.641 MB / 330.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,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.0004281/0.3956, allocations: 274.4 kB / 0.4974 GB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.595e-05/0.3957, allocations: 61.31 kB / 0.4975 GB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.3972, allocations: 0.714 MB / 0.4982 GB, free: 3.934 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.3972, allocations: 4.125 kB / 0.4982 GB, free: 3.934 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3973, allocations: 2.75 kB / 0.4982 GB, free: 3.934 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.3973, allocations: 0 / 0.4982 GB, free: 3.934 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002597/0.3999, allocations: 1.535 MB / 0.4997 GB, free: 2.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.3999, allocations: 1.031 kB / 0.4997 GB, free: 2.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002881/0.4002, allocations: 60.97 kB / 0.4998 GB, free: 2.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003025/0.4005, allocations: 107.3 kB / 0.4999 GB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.495e-05/0.4005, allocations: 13.3 kB / 0.4999 GB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002555/0.4031, allocations: 2.98 MB / 0.5028 GB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4031, allocations: 0 / 0.5028 GB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01307/0.4162, allocations: 8.034 MB / 0.5106 GB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003545/0.4166, allocations: 184.2 kB / 0.5108 GB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/0.4168, allocations: 32.14 kB / 0.5108 GB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005015/0.4173, allocations: 35.95 kB / 0.5109 GB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.4174, allocations: 31.89 kB / 0.5109 GB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.4175, allocations: 19.98 kB / 0.5109 GB, free: 6.891 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005748/0.4181, allocations: 354.8 kB / 0.5113 GB, free: 6.547 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4181, allocations: 0 / 0.5113 GB, free: 6.547 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001173/0.4193, allocations: 212 kB / 0.5115 GB, free: 6.34 MB / 346.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 (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.0001995/0.4195, allocations: 132.1 kB / 0.5116 GB, free: 6.203 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.4211, allocations: 0.9017 MB / 0.5125 GB, free: 5.266 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4212, allocations: 4 kB / 0.5125 GB, free: 5.262 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009254/0.4221, allocations: 0.4909 MB / 0.5129 GB, free: 4.746 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000834/0.4229, allocations: 138.2 kB / 0.5131 GB, free: 4.613 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003734/0.4267, allocations: 2.3 MB / 0.5153 GB, free: 2.238 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007131/0.4274, allocations: 0.9879 MB / 0.5163 GB, free: 1.223 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004187/0.4278, allocations: 112.9 kB / 0.5164 GB, free: 1.109 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.428, allocations: 39.44 kB / 0.5164 GB, free: 1.07 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.428, allocations: 4 kB / 0.5164 GB, free: 1.066 MB / 346.7 MB Notification: Performance of Templates: time 0.01602/0.444, allocations: 8.365 MB / 0.5246 GB, free: 8.719 MB / 362.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@2/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