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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 73.41 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002165/0.002165, allocations: 158.6 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.489/1.489, allocations: 177.2 MB / 204.9 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1759/0.1759, allocations: 29.43 MB / 290.7 MB, free: 3.262 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 59.91 kB / 431.2 MB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3551, allocations: 62.44 MB / 493.6 MB, free: 37.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007139/0.3623, allocations: 6.199 MB / 499.8 MB, free: 33.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.3649, allocations: 1.295 MB / 0.4894 GB, free: 32.79 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003453/0.3653, allocations: 35.5 kB / 0.4894 GB, free: 32.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003409/0.3656, allocations: 129.8 kB / 0.4896 GB, free: 32.7 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009422/0.3666, allocations: 434 kB / 0.49 GB, free: 32.46 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005378/0.3671, allocations: 232.4 kB / 0.4902 GB, free: 32.34 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001151/0.3683, allocations: 1.128 MB / 0.4913 GB, free: 31.84 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003932/0.3686, allocations: 250.6 kB / 0.4915 GB, free: 31.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007/0.3693, allocations: 0.5318 MB / 0.492 GB, free: 31.5 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000655/0.37, allocations: 0.531 MB / 0.4926 GB, free: 31.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.952e-05/0.3701, allocations: 65.06 kB / 0.4926 GB, free: 31.32 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.3702, allocations: 64.19 kB / 0.4927 GB, free: 31.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002615/0.3705, allocations: 349.1 kB / 0.493 GB, free: 31.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002856/0.3708, allocations: 322.8 kB / 0.4933 GB, free: 31.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007347/0.3715, allocations: 0.932 MB / 0.4942 GB, free: 30.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3715, allocations: 3.562 kB / 0.4942 GB, free: 30.66 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3715, allocations: 4 kB / 0.4942 GB, free: 30.66 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.3715, allocations: 0 / 0.4942 GB, free: 30.66 MB / 446.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.001775/0.3733, allocations: 1.088 MB / 0.4953 GB, free: 29.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3733, allocations: 17.25 kB / 0.4953 GB, free: 29.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.3735, allocations: 89.08 kB / 0.4954 GB, free: 29.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008917/0.3744, allocations: 0.5439 MB / 0.4959 GB, free: 29.56 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.3745, allocations: 222.4 kB / 0.4962 GB, free: 29.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.3746, allocations: 63.75 kB / 0.4962 GB, free: 29.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.376, allocations: 0.8653 MB / 0.4971 GB, free: 28.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.376, allocations: 11.86 kB / 0.4971 GB, free: 28.93 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.895e-05/0.376, allocations: 22.06 kB / 0.4971 GB, free: 28.91 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/0.3761, allocations: 42.88 kB / 0.4971 GB, free: 28.91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.3772, allocations: 0.6206 MB / 0.4977 GB, free: 28.71 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002881/0.3801, allocations: 2.425 MB / 0.5001 GB, free: 27.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.3815, allocations: 0.5676 MB / 0.5007 GB, free: 26.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006236/0.3821, allocations: 299.6 kB / 0.501 GB, free: 26.81 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.3822, allocations: 11.08 kB / 0.501 GB, free: 26.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006219/0.3828, allocations: 349.1 kB / 0.5013 GB, free: 26.65 MB / 446.1 MB Notification: Performance of pre-optimization done (n=41): time 2.404e-06/0.3828, allocations: 0 / 0.5013 GB, free: 26.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.003669/0.3865, allocations: 1.677 MB / 0.5029 GB, free: 25.85 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.3865, allocations: 122.1 kB / 0.503 GB, free: 25.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000399/0.3869, allocations: 452 kB / 0.5035 GB, free: 25.51 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.749e-05/0.3869, allocations: 40.48 kB / 0.5035 GB, free: 25.47 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/0.3872, allocations: 375.2 kB / 0.5039 GB, free: 25.17 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.071e-05/0.3873, allocations: 149.7 kB / 0.504 GB, free: 25.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.3874, allocations: 124.5 kB / 0.5041 GB, free: 24.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.087e-05/0.3875, allocations: 363.2 kB / 0.5045 GB, free: 24.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000302/0.3878, allocations: 260.2 kB / 0.5047 GB, free: 24.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003677/0.3882, allocations: 423 kB / 0.5051 GB, free: 24.24 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005989/0.3888, allocations: 0.6199 MB / 0.5057 GB, free: 23.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3888, allocations: 3.938 kB / 0.5057 GB, free: 23.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009825/0.3897, allocations: 0.8326 MB / 0.5066 GB, free: 23.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.256e-05/0.3898, allocations: 52.58 kB / 0.5066 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.3898, allocations: 6.156 kB / 0.5066 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002604/0.39, allocations: 94.03 kB / 0.5067 GB, free: 23.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003587/0.3904, allocations: 105.9 kB / 0.5068 GB, free: 23.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001762/0.3922, allocations: 2.995 MB / 0.5097 GB, free: 20.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000319/0.3925, allocations: 40.73 kB / 0.5098 GB, free: 20.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.76e-05/0.3926, allocations: 44.89 kB / 0.5098 GB, free: 20.59 MB / 446.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.0002851/0.3928, allocations: 275.6 kB / 0.5101 GB, free: 20.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.3929, allocations: 55.03 kB / 0.5101 GB, free: 20.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.3941, allocations: 0.6159 MB / 0.5107 GB, free: 20.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.3942, allocations: 3.062 kB / 0.5107 GB, free: 20.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3942, allocations: 2.875 kB / 0.5107 GB, free: 20.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3942, allocations: 0 / 0.5107 GB, free: 20.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0019/0.3961, allocations: 1.297 MB / 0.512 GB, free: 19.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3961, allocations: 0 / 0.512 GB, free: 19.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.3963, allocations: 60.34 kB / 0.5121 GB, free: 19.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002268/0.3965, allocations: 107.2 kB / 0.5122 GB, free: 19.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.291e-05/0.3966, allocations: 13.45 kB / 0.5122 GB, free: 19.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.3983, allocations: 2.998 MB / 0.5151 GB, free: 16.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.3983, allocations: 1.156 kB / 0.5151 GB, free: 16.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.4002, allocations: 0.9865 MB / 0.5161 GB, free: 16.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.4004, allocations: 91.89 kB / 0.5162 GB, free: 16.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.268e-05/0.4005, allocations: 34.02 kB / 0.5162 GB, free: 16.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003694/0.4009, allocations: 43.34 kB / 0.5162 GB, free: 16.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.24e-05/0.4009, allocations: 28.23 kB / 0.5163 GB, free: 16.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.471e-05/0.401, allocations: 19.38 kB / 0.5163 GB, free: 16.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002941/0.4013, allocations: 301 kB / 0.5166 GB, free: 16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4013, allocations: 0 / 0.5166 GB, free: 16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006909/0.402, allocations: 153.7 kB / 0.5167 GB, free: 15.98 MB / 446.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]) * 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.0001344/0.4021, allocations: 132.2 kB / 0.5168 GB, free: 15.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.4034, allocations: 0.8833 MB / 0.5177 GB, free: 15.37 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4035, allocations: 0 / 0.5177 GB, free: 15.37 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008048/0.4043, allocations: 488.9 kB / 0.5182 GB, free: 15.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006837/0.4049, allocations: 133 kB / 0.5183 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.4072, allocations: 1.484 MB / 0.5197 GB, free: 14.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.4076, allocations: 375.6 kB / 0.5201 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002964/0.4079, allocations: 98.16 kB / 0.5202 GB, free: 14.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.408, allocations: 39.88 kB / 0.5202 GB, free: 14.04 MB / 446.1 MB Notification: Performance of SimCode: time 4.71e-07/0.408, allocations: 0 / 0.5202 GB, free: 14.04 MB / 446.1 MB Notification: Performance of Templates: time 0.01532/0.4234, allocations: 6.819 MB / 0.5269 GB, free: 13.24 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.323208763031289]