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.002217/0.002217, allocations: 85.83 kB / 20.68 MB, free: 1.035 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.002632/0.002632, allocations: 165.2 kB / 23.95 MB, free: 4.168 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.398/1.398, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 179] 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.167/0.167, allocations: 29.43 MB / 290.1 MB, free: 3.289 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: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 430.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.89e-05/2.014e-05, allocations: 2.281 kB / 430.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007806/0.007826, allocations: 6.169 MB / 436.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.01004, allocations: 1.285 MB / 438.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.01027, allocations: 39.62 kB / 438.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003397/0.01061, allocations: 134.8 kB / 438.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009024/0.01151, allocations: 445.4 kB / 438.8 MB, free: 9.836 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005067/0.01202, allocations: 247.4 kB / 439 MB, free: 9.594 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001235/0.01325, allocations: 1.133 MB / 440.2 MB, free: 8.457 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003925/0.01365, allocations: 242.2 kB / 440.4 MB, free: 8.219 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009049/0.01455, allocations: 0.6622 MB / 441.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007807/0.01533, allocations: 0.4986 MB / 441.6 MB, free: 7.055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.01545, allocations: 64 kB / 441.6 MB, free: 6.992 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.0156, allocations: 68 kB / 441.7 MB, free: 6.926 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000366/0.01597, allocations: 355 kB / 442 MB, free: 6.578 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003618/0.01633, allocations: 279.4 kB / 442.3 MB, free: 6.305 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.01734, allocations: 0.9151 MB / 443.2 MB, free: 5.387 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.01734, allocations: 4 kB / 443.2 MB, free: 5.383 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01735, allocations: 0 / 443.2 MB, free: 5.383 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.01736, allocations: 0 / 443.2 MB, free: 5.383 MB / 366.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.001982/0.01934, allocations: 1.091 MB / 444.3 MB, free: 4.246 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.01937, allocations: 11.98 kB / 444.3 MB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/0.01954, allocations: 104.4 kB / 444.4 MB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.02054, allocations: 0.5393 MB / 445 MB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.02072, allocations: 220.1 kB / 445.2 MB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.02084, allocations: 68.36 kB / 445.2 MB, free: 3.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.0224, allocations: 0.8652 MB / 446.1 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.02242, allocations: 3.938 kB / 446.1 MB, free: 2.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.835e-05/0.02249, allocations: 28 kB / 446.1 MB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/0.0226, allocations: 37.28 kB / 446.2 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.02384, allocations: 0.6179 MB / 446.8 MB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1652/0.1891, allocations: 2.435 MB / 449.2 MB, free: 29.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.1907, allocations: 0.5631 MB / 449.8 MB, free: 29.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007101/0.1914, allocations: 300.5 kB / 450.1 MB, free: 29.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.1914, allocations: 3.984 kB / 450.1 MB, free: 29.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006868/0.1921, allocations: 359.8 kB / 450.4 MB, free: 28.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.265e-06/0.1921, allocations: 0 / 450.4 MB, free: 28.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=42): time 0.003811/0.1959, allocations: 1.665 MB / 452.1 MB, free: 28.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.196, allocations: 116.5 kB / 452.2 MB, free: 28.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004356/0.1964, allocations: 467.6 kB / 452.7 MB, free: 27.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.1965, allocations: 39.64 kB / 452.7 MB, free: 27.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.1966, allocations: 372.2 kB / 453.1 MB, free: 27.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.467e-05/0.1967, allocations: 145.2 kB / 453.2 MB, free: 27.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.1969, allocations: 120.3 kB / 453.3 MB, free: 27.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.912e-05/0.197, allocations: 369.2 kB / 453.7 MB, free: 27.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003451/0.1973, allocations: 256.8 kB / 453.9 MB, free: 26.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003753/0.1977, allocations: 423.8 kB / 454.4 MB, free: 26.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006423/0.1983, allocations: 0.6157 MB / 455 MB, free: 26.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1983, allocations: 1.281 kB / 455 MB, free: 26.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001116/0.1995, allocations: 0.8353 MB / 455.8 MB, free: 25.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.077e-05/0.1995, allocations: 57.27 kB / 455.9 MB, free: 25.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.1995, allocations: 5.5 kB / 455.9 MB, free: 25.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002859/0.1998, allocations: 85.27 kB / 456 MB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000382/0.2002, allocations: 110.6 kB / 456.1 MB, free: 25.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001901/0.2021, allocations: 2.992 MB / 459.1 MB, free: 23.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003752/0.2025, allocations: 37.05 kB / 459.1 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.613e-05/0.2025, allocations: 44.47 kB / 459.1 MB, free: 23.06 MB / 366.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.0003484/0.2029, allocations: 274.1 kB / 459.4 MB, free: 22.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.865e-05/0.2029, allocations: 57.91 kB / 459.5 MB, free: 22.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.2044, allocations: 0.6157 MB / 460.1 MB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.2044, allocations: 6.016 kB / 460.1 MB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2044, allocations: 5.344 kB / 460.1 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.2044, allocations: 3.656 kB / 460.1 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002271/0.2067, allocations: 1.287 MB / 461.4 MB, free: 21.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.2067, allocations: 3.797 kB / 461.4 MB, free: 21.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.2069, allocations: 64.89 kB / 461.4 MB, free: 21.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000287/0.2072, allocations: 101.5 kB / 461.5 MB, free: 21.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/0.2073, allocations: 17.56 kB / 461.6 MB, free: 21.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001799/0.2091, allocations: 2.985 MB / 464.6 MB, free: 19.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2091, allocations: 1.188 kB / 464.6 MB, free: 19.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.2112, allocations: 0.9837 MB / 465.5 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.2114, allocations: 98.2 kB / 465.6 MB, free: 18.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.908e-05/0.2115, allocations: 27.55 kB / 465.7 MB, free: 18.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004081/0.2119, allocations: 44.56 kB / 465.7 MB, free: 18.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.473e-05/0.212, allocations: 34.47 kB / 465.7 MB, free: 18.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.758e-05/0.212, allocations: 17.77 kB / 465.8 MB, free: 18.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003485/0.2124, allocations: 305.5 kB / 466.1 MB, free: 18.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2124, allocations: 0 / 466.1 MB, free: 18.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007513/0.2131, allocations: 145.7 kB / 466.2 MB, free: 18.5 MB / 366.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.0001593/0.2133, allocations: 136.9 kB / 466.3 MB, free: 18.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.2148, allocations: 0.8787 MB / 467.2 MB, free: 17.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2148, allocations: 0 / 467.2 MB, free: 17.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008547/0.2157, allocations: 493.5 kB / 467.7 MB, free: 17.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007678/0.2164, allocations: 123.7 kB / 467.8 MB, free: 17.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/0.2188, allocations: 1.383 MB / 469.2 MB, free: 16.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.2192, allocations: 378.7 kB / 469.6 MB, free: 16.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002913/0.2195, allocations: 99.84 kB / 469.7 MB, free: 16.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.2196, allocations: 40.11 kB / 469.7 MB, free: 16.67 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2196, allocations: 0 / 469.7 MB, free: 16.67 MB / 366.1 MB Notification: Performance of Templates: time 0.01251/0.2321, allocations: 6.791 MB / 476.5 MB, free: 14.21 MB / 366.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins/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: 4.800583928823471]