Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008356/0.0008356, allocations: 95.95 kB / 16.3 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008288/0.0008288, allocations: 184.3 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.209/1.209, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2613/0.2613, allocations: 38.07 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002855, allocations: 12 kB / 400 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2537, allocations: 59.15 MB / 459.1 MB, free: 30.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.006722/0.2605, allocations: 7.143 MB / 466.3 MB, free: 25.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003914/0.2644, allocations: 2.4 MB / 468.7 MB, free: 23.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005694/0.265, allocations: 53.72 kB / 468.7 MB, free: 23.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003639/0.2654, allocations: 156.5 kB / 468.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001221/0.2666, allocations: 0.5158 MB / 469.4 MB, free: 22.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008953/0.2675, allocations: 391.9 kB / 469.8 MB, free: 22.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008451/0.2684, allocations: 0.7482 MB / 470.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.2696, allocations: 0.906 MB / 471.4 MB, free: 21.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006366/0.2702, allocations: 450 kB / 471.9 MB, free: 21.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006911/0.2709, allocations: 481.4 kB / 472.3 MB, free: 21.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.271, allocations: 42.12 kB / 472.4 MB, free: 21.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008898/0.2719, allocations: 429.7 kB / 472.8 MB, free: 21.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005122/0.2724, allocations: 423.8 kB / 473.2 MB, free: 21.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002627/0.2727, allocations: 213.8 kB / 473.4 MB, free: 21.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001397/0.2741, allocations: 1.151 MB / 474.6 MB, free: 20.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.2741, allocations: 0 / 474.6 MB, free: 20.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2742, allocations: 5.469 kB / 474.6 MB, free: 20.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.563e-05/0.2742, allocations: 0 / 474.6 MB, free: 20.99 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002978/0.2772, allocations: 1.374 MB / 476 MB, free: 19.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.2772, allocations: 9.625 kB / 476 MB, free: 19.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007391/0.278, allocations: 165.2 kB / 476.1 MB, free: 19.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.2791, allocations: 0.6747 MB / 476.8 MB, free: 19.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.2792, allocations: 167.8 kB / 477 MB, free: 19.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002064/0.2794, allocations: 108.4 kB / 477.1 MB, free: 19.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002306/0.2818, allocations: 1.546 MB / 478.6 MB, free: 18.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.2818, allocations: 5.125 kB / 478.6 MB, free: 18.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.565e-05/0.2819, allocations: 42.05 kB / 478.7 MB, free: 18.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001465/0.2821, allocations: 67.09 kB / 478.7 MB, free: 18.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/0.284, allocations: 1.188 MB / 479.9 MB, free: 17.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00507/0.2891, allocations: 4.794 MB / 484.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/0.2915, allocations: 1.193 MB / 485.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.149e-05/0.2915, allocations: 12.62 kB / 485.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0011/0.2926, allocations: 0.73 MB / 486.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.214e-06/0.2926, allocations: 0 / 486.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=81): time 0.005467/0.2981, allocations: 3.375 MB / 490 MB, free: 8.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.2982, allocations: 127.4 kB / 490.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/0.2987, allocations: 0.581 MB / 490.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.95e-05/0.2987, allocations: 49.7 kB / 490.8 MB, free: 7.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.2989, allocations: 459 kB / 491.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.2991, allocations: 280.2 kB / 491.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.134e-05/0.2991, allocations: 20 kB / 491.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.739e-05/0.2992, allocations: 394.8 kB / 491.9 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000508/0.2998, allocations: 462 kB / 492.4 MB, free: 6.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006071/0.3004, allocations: 0.7229 MB / 493.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005989/0.301, allocations: 0.5976 MB / 493.7 MB, free: 4.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.301, allocations: 0 / 493.7 MB, free: 4.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001705/0.3027, allocations: 1.529 MB / 495.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.573e-05/0.3028, allocations: 61.67 kB / 495.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001362/0.3041, allocations: 1.286 MB / 496.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003126/0.3045, allocations: 101.6 kB / 496.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006388/0.3051, allocations: 203.6 kB / 496.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002049/0.3072, allocations: 3.005 MB / 499.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005964/0.3078, allocations: 80.09 kB / 499.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.3079, allocations: 83.88 kB / 0.4883 GB, free: 14.05 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 1 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00054/0.3085, allocations: 375.5 kB / 0.4886 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.3086, allocations: 82.98 kB / 0.4887 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/0.3111, allocations: 1.298 MB / 0.49 GB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.3111, allocations: 16 kB / 0.49 GB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3111, allocations: 4 kB / 0.49 GB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.3111, allocations: 3.984 kB / 0.49 GB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003882/0.315, allocations: 2.455 MB / 0.4924 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-06/0.3151, allocations: 0 / 0.4924 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000662/0.3157, allocations: 147.8 kB / 0.4926 GB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.087e-05/0.3158, allocations: 20.86 kB / 0.4926 GB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-05/0.3159, allocations: 27.97 kB / 0.4926 GB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009017/0.3168, allocations: 1.408 MB / 0.494 GB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.3168, allocations: 0 / 0.494 GB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003487/0.3203, allocations: 2.007 MB / 0.4959 GB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/0.3207, allocations: 251.9 kB / 0.4962 GB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.3209, allocations: 75.95 kB / 0.4963 GB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007068/0.3216, allocations: 107.9 kB / 0.4964 GB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.3218, allocations: 60.52 kB / 0.4964 GB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.568e-05/0.3218, allocations: 23.98 kB / 0.4964 GB, free: 5.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004361/0.3223, allocations: 402.8 kB / 0.4968 GB, free: 4.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3223, allocations: 0 / 0.4968 GB, free: 4.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009038/0.3232, allocations: 240.2 kB / 0.497 GB, free: 4.715 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 64 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.0002641/0.3235, allocations: 178.8 kB / 0.4972 GB, free: 4.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.3258, allocations: 1.634 MB / 0.4988 GB, free: 2.859 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3258, allocations: 0 / 0.4988 GB, free: 2.859 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.327, allocations: 0.6714 MB / 0.4995 GB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006489/0.3276, allocations: 160.9 kB / 0.4996 GB, free: 2.027 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003596/0.3312, allocations: 2.793 MB / 0.5024 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006168/0.3319, allocations: 1.146 MB / 0.5035 GB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005602/0.3324, allocations: 242.5 kB / 0.5037 GB, free: 13.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.3326, allocations: 55.44 kB / 0.5038 GB, free: 13.71 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3326, allocations: 0 / 0.5038 GB, free: 13.71 MB / 382.1 MB Notification: Performance of Templates: time 0.01474/0.3474, allocations: 10.16 MB / 0.5137 GB, free: 3.637 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Inverter.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches