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.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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009189/0.000919, allocations: 87.97 kB / 16.31 MB, free: 6.461 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.0008226/0.0008229, allocations: 177.6 kB / 17.21 MB, free: 6.336 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.229/1.229, allocations: 223.3 MB / 241.2 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2665/0.2665, allocations: 38.07 MB / 330.4 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002669, allocations: 8 kB / 400.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2502, allocations: 59.16 MB / 459.2 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.005833/0.2561, allocations: 7.074 MB / 466.3 MB, free: 25.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002341/0.2584, allocations: 1.709 MB / 468 MB, free: 24.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000343/0.2588, allocations: 57.56 kB / 468.1 MB, free: 24.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003243/0.2591, allocations: 137.4 kB / 468.2 MB, free: 24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008994/0.26, allocations: 0.4886 MB / 468.7 MB, free: 23.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/0.2606, allocations: 252.5 kB / 468.9 MB, free: 23.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001163/0.2617, allocations: 1.31 MB / 470.2 MB, free: 23.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003613/0.2621, allocations: 303 kB / 470.5 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004899/0.2626, allocations: 410.6 kB / 470.9 MB, free: 22.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006597/0.2633, allocations: 0.4913 MB / 471.4 MB, free: 22.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.97e-05/0.2633, allocations: 29.91 kB / 471.5 MB, free: 22.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.2635, allocations: 31.09 kB / 471.5 MB, free: 22.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003137/0.2638, allocations: 294.5 kB / 471.8 MB, free: 22.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.2639, allocations: 169.7 kB / 471.9 MB, free: 22.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006517/0.2646, allocations: 0.6899 MB / 472.6 MB, free: 22.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2646, allocations: 3.938 kB / 472.6 MB, free: 22.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2646, allocations: 0 / 472.6 MB, free: 22.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.148e-06/0.2646, allocations: 0 / 472.6 MB, free: 22.38 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001481/0.2661, allocations: 1.006 MB / 473.6 MB, free: 21.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.2662, allocations: 10.44 kB / 473.7 MB, free: 21.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.2663, allocations: 90.88 kB / 473.7 MB, free: 21.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007283/0.267, allocations: 0.5605 MB / 474.3 MB, free: 21.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.2671, allocations: 111.2 kB / 474.4 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.53e-05/0.2672, allocations: 68.64 kB / 474.5 MB, free: 21.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.2686, allocations: 0.8694 MB / 475.4 MB, free: 20.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.2686, allocations: 5.375 kB / 475.4 MB, free: 20.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.657e-05/0.2687, allocations: 23.77 kB / 475.4 MB, free: 20.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.521e-05/0.2688, allocations: 39 kB / 475.4 MB, free: 20.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.2698, allocations: 0.6297 MB / 476 MB, free: 20.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002759/0.2726, allocations: 2.774 MB / 478.8 MB, free: 18.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.2739, allocations: 0.9138 MB / 479.7 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005952/0.2745, allocations: 328.7 kB / 480.1 MB, free: 17.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.2746, allocations: 8.891 kB / 480.1 MB, free: 17.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000602/0.2752, allocations: 364.1 kB / 480.4 MB, free: 17.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.663e-06/0.2752, allocations: 0 / 480.4 MB, free: 17.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.003348/0.2786, allocations: 2.039 MB / 482.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.2786, allocations: 123.2 kB / 482.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000479/0.2791, allocations: 0.5036 MB / 483.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.2791, allocations: 38.92 kB / 483.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.2793, allocations: 358.4 kB / 483.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.254e-05/0.2794, allocations: 137.4 kB / 483.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.2794, allocations: 11.19 kB / 483.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.601e-05/0.2795, allocations: 370.2 kB / 484 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.2798, allocations: 215.4 kB / 484.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/0.2802, allocations: 375.6 kB / 484.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/0.2805, allocations: 303.5 kB / 484.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.2805, allocations: 7.953 kB / 484.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008892/0.2814, allocations: 0.855 MB / 485.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.842e-05/0.2814, allocations: 51.88 kB / 485.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.2815, allocations: 8 kB / 485.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002237/0.2817, allocations: 89.94 kB / 485.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000316/0.282, allocations: 107.8 kB / 486 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001505/0.2835, allocations: 2.985 MB / 489 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/0.2838, allocations: 31.98 kB / 489 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.578e-05/0.2839, allocations: 43.97 kB / 489 MB, free: 9.309 MB / 350.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 () * 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 (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%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002388/0.2841, allocations: 269.7 kB / 489.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.821e-05/0.2842, allocations: 67.27 kB / 489.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.2853, allocations: 0.7277 MB / 490.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2853, allocations: 4 kB / 490.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2853, allocations: 0 / 490.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.2853, allocations: 15.88 kB / 490.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/0.2871, allocations: 1.555 MB / 491.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2871, allocations: 0 / 491.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.2874, allocations: 59.89 kB / 491.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002042/0.2876, allocations: 97.62 kB / 491.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.2876, allocations: 11.98 kB / 491.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00147/0.2891, allocations: 2.985 MB / 494.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2891, allocations: 0 / 494.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.2906, allocations: 1.102 MB / 495.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.2908, allocations: 176.3 kB / 496.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.543e-05/0.2909, allocations: 31.98 kB / 496.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003337/0.2912, allocations: 47.94 kB / 496.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.704e-05/0.2913, allocations: 31.92 kB / 496.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.2913, allocations: 23.92 kB / 496.2 MB, free: 1.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002679/0.2916, allocations: 350.8 kB / 496.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2916, allocations: 0 / 496.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005388/0.2922, allocations: 152 kB / 496.7 MB, free: 1.156 MB / 350.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 (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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001219/0.2923, allocations: 127.7 kB / 496.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.2934, allocations: 0.9054 MB / 497.7 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2934, allocations: 0 / 497.7 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008193/0.2942, allocations: 0.4984 MB / 498.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007262/0.295, allocations: 130.2 kB / 498.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.2973, allocations: 1.815 MB / 0.4885 GB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005396/0.2979, allocations: 0.9759 MB / 0.4894 GB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003036/0.2982, allocations: 108.9 kB / 0.4895 GB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.2983, allocations: 39.44 kB / 0.4895 GB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2983, allocations: 0 / 0.4895 GB, free: 12.43 MB / 366.1 MB Notification: Performance of Templates: time 0.01117/0.3095, allocations: 6.851 MB / 0.4962 GB, free: 5.648 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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