Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008033/0.0008033, allocations: 95.77 kB / 16.3 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.0008173/0.0008173, allocations: 183 kB / 17.19 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.24/1.24, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2816/0.2816, allocations: 38.08 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.000267, allocations: 8 kB / 400 MB, free: 9.293 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2433, allocations: 59.15 MB / 459.1 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.005799/0.2492, allocations: 6.112 MB / 465.2 MB, free: 25.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.2522, allocations: 1.849 MB / 467.1 MB, free: 24.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005191/0.2528, allocations: 39.22 kB / 467.1 MB, free: 24.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006451/0.2534, allocations: 210 kB / 467.3 MB, free: 24.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008605/0.2543, allocations: 314.5 kB / 467.6 MB, free: 24.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005961/0.2549, allocations: 187 kB / 467.8 MB, free: 24.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007276/0.2556, allocations: 0.5575 MB / 468.4 MB, free: 23.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004451/0.2561, allocations: 329.7 kB / 468.7 MB, free: 23.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004519/0.2566, allocations: 338.6 kB / 469 MB, free: 23.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004873/0.2571, allocations: 323.4 kB / 469.3 MB, free: 23.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.329e-05/0.2571, allocations: 36.41 kB / 469.4 MB, free: 23.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.2573, allocations: 36.94 kB / 469.4 MB, free: 23.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002404/0.2575, allocations: 214.3 kB / 469.6 MB, free: 23.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.2576, allocations: 159.2 kB / 469.8 MB, free: 23.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008506/0.2585, allocations: 0.8174 MB / 470.6 MB, free: 23.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2585, allocations: 0 / 470.6 MB, free: 23.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2585, allocations: 0 / 470.6 MB, free: 23.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.2585, allocations: 0 / 470.6 MB, free: 23.12 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001633/0.2602, allocations: 0.9158 MB / 471.5 MB, free: 22.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.2602, allocations: 12.03 kB / 471.5 MB, free: 22.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.2604, allocations: 73.09 kB / 471.6 MB, free: 22.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.2614, allocations: 0.617 MB / 472.2 MB, free: 22.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.2615, allocations: 110.4 kB / 472.3 MB, free: 21.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.2616, allocations: 67.41 kB / 472.4 MB, free: 21.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.263, allocations: 0.7501 MB / 473.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.263, allocations: 4 kB / 473.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-05/0.2631, allocations: 22.19 kB / 473.2 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/0.2631, allocations: 15.45 kB / 473.2 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.2643, allocations: 0.6242 MB / 473.8 MB, free: 21.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003265/0.2675, allocations: 2.477 MB / 476.3 MB, free: 19.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008935/0.2685, allocations: 443.3 kB / 476.7 MB, free: 19.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.2685, allocations: 8.344 kB / 476.7 MB, free: 19.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/0.2689, allocations: 249.2 kB / 477 MB, free: 19.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.124e-06/0.2689, allocations: 0 / 477 MB, free: 19.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.00294/0.2718, allocations: 0.8645 MB / 477.8 MB, free: 18.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.2719, allocations: 141.5 kB / 478 MB, free: 18.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004332/0.2724, allocations: 400.3 kB / 478.4 MB, free: 18.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.2724, allocations: 31.11 kB / 478.4 MB, free: 18.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.2726, allocations: 312.6 kB / 478.7 MB, free: 17.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.843e-05/0.2727, allocations: 117.7 kB / 478.8 MB, free: 17.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-05/0.2727, allocations: 10.09 kB / 478.8 MB, free: 17.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.78e-05/0.2728, allocations: 365.8 kB / 479.2 MB, free: 17.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.273, allocations: 124.5 kB / 479.3 MB, free: 17.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002968/0.2734, allocations: 244.7 kB / 479.5 MB, free: 17.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003184/0.2737, allocations: 165.3 kB / 479.7 MB, free: 17.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2737, allocations: 1.344 kB / 479.7 MB, free: 17.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008756/0.2746, allocations: 0.5069 MB / 480.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.2746, allocations: 11.62 kB / 480.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.2746, allocations: 3.156 kB / 480.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004443/0.2751, allocations: 153 kB / 480.4 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003003/0.2754, allocations: 90.31 kB / 480.5 MB, free: 16.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002917/0.2783, allocations: 2.083 MB / 482.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003659/0.2787, allocations: 53.98 kB / 482.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.268e-05/0.2787, allocations: 17.5 kB / 482.6 MB, free: 14.81 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,chopper.modulator.gate,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.diode.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003575/0.2791, allocations: 248.6 kB / 482.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.2791, allocations: 49.02 kB / 482.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.2803, allocations: 476.2 kB / 483.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.2804, allocations: 12.52 kB / 483.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.2804, allocations: 1.125 kB / 483.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.2804, allocations: 1.062 kB / 483.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007082/0.2811, allocations: 0.6795 MB / 484.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2811, allocations: 4.922 kB / 484.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/0.2814, allocations: 47.81 kB / 484.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004011/0.2818, allocations: 153.4 kB / 484.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.2818, allocations: 7.406 kB / 484.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002562/0.2844, allocations: 2.077 MB / 486.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.2844, allocations: 1.562 kB / 486.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.2858, allocations: 0.7305 MB / 487.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.286, allocations: 152.5 kB / 487.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.274e-05/0.286, allocations: 8 kB / 487.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.2863, allocations: 19.98 kB / 487.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.662e-05/0.2864, allocations: 47.89 kB / 487.3 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.2864, allocations: 8 kB / 487.3 MB, free: 11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.2866, allocations: 279.1 kB / 487.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2866, allocations: 0 / 487.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005565/0.2872, allocations: 159.5 kB / 487.7 MB, free: 10.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001085/0.2873, allocations: 103.2 kB / 487.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008069/0.2881, allocations: 0.499 MB / 488.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.2881, allocations: 0 / 488.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004187/0.2886, allocations: 342.4 kB / 488.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005123/0.2891, allocations: 140.1 kB / 488.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.2907, allocations: 1.519 MB / 490.3 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.291, allocations: 0.9445 MB / 491.3 MB, free: 6.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002362/0.2912, allocations: 84.62 kB / 491.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.242e-05/0.2913, allocations: 31.44 kB / 491.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2913, allocations: 4 kB / 491.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of Templates: time 0.009931/0.3013, allocations: 7.399 MB / 498.8 MB, free: 15.5 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches