Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000906/0.0009062, allocations: 93.86 kB / 16.32 MB, free: 5.559 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.001097/0.001098, allocations: 181.2 kB / 17.21 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.567/1.567, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1735/0.1735, allocations: 38.04 MB / 309.7 MB, free: 6.105 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004802/0.0004802, allocations: 12 kB / 376.6 MB, free: 3.062 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2441, allocations: 56.32 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.005048/0.2492, allocations: 6.404 MB / 439.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.2515, allocations: 1.867 MB / 441.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003421/0.2519, allocations: 35.75 kB / 441.2 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005165/0.2524, allocations: 214.6 kB / 441.5 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006242/0.2531, allocations: 373.9 kB / 441.8 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.2534, allocations: 183.8 kB / 442 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007649/0.2542, allocations: 1.16 MB / 443.2 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003548/0.2546, allocations: 329.8 kB / 443.5 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000359/0.2549, allocations: 370.4 kB / 443.8 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004702/0.2554, allocations: 442.5 kB / 444.3 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.471e-05/0.2555, allocations: 39.94 kB / 444.3 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.363e-05/0.2556, allocations: 36 kB / 444.4 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00017/0.2558, allocations: 227.3 kB / 444.6 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.2559, allocations: 165.3 kB / 444.7 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000463/0.2563, allocations: 0.8142 MB / 445.6 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2564, allocations: 0 / 445.6 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2564, allocations: 0 / 445.6 MB, free: 6.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2564, allocations: 0 / 445.6 MB, free: 6.145 MB / 318.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.001395/0.2578, allocations: 0.9159 MB / 446.5 MB, free: 5.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.2578, allocations: 8.031 kB / 446.5 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.968e-05/0.2579, allocations: 110.5 kB / 446.6 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.855e-05/0.258, allocations: 75.06 kB / 446.7 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000809/0.2589, allocations: 0.6126 MB / 447.3 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.259, allocations: 112.7 kB / 447.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.387e-05/0.259, allocations: 60 kB / 447.4 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.2601, allocations: 0.7616 MB / 448.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.2601, allocations: 7.891 kB / 448.2 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.105e-05/0.2601, allocations: 20 kB / 448.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.2602, allocations: 16 kB / 448.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009788/0.2612, allocations: 0.6284 MB / 448.9 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.2635, allocations: 2.464 MB / 451.3 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007939/0.2643, allocations: 429 kB / 451.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000389/0.2647, allocations: 202.7 kB / 452 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.2648, allocations: 4.281 kB / 452 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004494/0.2652, allocations: 247.2 kB / 452.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 1.713e-06/0.2652, allocations: 0 / 452.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.002745/0.268, allocations: 0.8698 MB / 453.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.167e-05/0.2681, allocations: 140.4 kB / 453.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000459/0.2685, allocations: 397.9 kB / 453.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/0.2686, allocations: 37.64 kB / 453.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.2688, allocations: 320.2 kB / 453.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.269, allocations: 122.3 kB / 454.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.269, allocations: 8 kB / 454.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2691, allocations: 350.8 kB / 454.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002829/0.2694, allocations: 128.8 kB / 454.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003359/0.2698, allocations: 246 kB / 454.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.2701, allocations: 168.6 kB / 454.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2701, allocations: 0 / 454.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009684/0.2711, allocations: 0.5191 MB / 455.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.2711, allocations: 4 kB / 455.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2711, allocations: 4 kB / 455.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004535/0.2716, allocations: 160.8 kB / 455.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.2719, allocations: 75.84 kB / 455.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/0.275, allocations: 2.033 MB / 457.7 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003126/0.2754, allocations: 63.67 kB / 457.8 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/0.2754, allocations: 23.92 kB / 457.8 MB, free: 9.289 MB / 334.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.0003416/0.2757, allocations: 237.7 kB / 458.1 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.518e-05/0.2758, allocations: 47.44 kB / 458.1 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.277, allocations: 474.6 kB / 458.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-06/0.2771, allocations: 12 kB / 458.6 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.2771, allocations: 3.938 kB / 458.6 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.2771, allocations: 8.156 kB / 458.6 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007931/0.2779, allocations: 0.6745 MB / 459.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.2779, allocations: 7.938 kB / 459.3 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.2781, allocations: 43.92 kB / 459.3 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003849/0.2785, allocations: 148.8 kB / 459.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.2786, allocations: 7.984 kB / 459.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003062/0.2816, allocations: 2.03 MB / 461.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.2816, allocations: 0 / 461.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.2831, allocations: 0.6982 MB / 462.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.2833, allocations: 148.5 kB / 462.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/0.2834, allocations: 8 kB / 462.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/0.2836, allocations: 19.98 kB / 462.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.2837, allocations: 39.83 kB / 462.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.2838, allocations: 12 kB / 462.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003189/0.2841, allocations: 279.1 kB / 462.7 MB, free: 4.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2841, allocations: 8 kB / 462.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006113/0.2847, allocations: 155.5 kB / 462.8 MB, free: 3.992 MB / 334.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.001693/0.2864, allocations: 1.233 MB / 464.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009878/0.2874, allocations: 0.4955 MB / 464.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2874, allocations: 0 / 464.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005468/0.288, allocations: 346.2 kB / 464.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006734/0.2887, allocations: 162.1 kB / 465.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005393/0.2941, allocations: 3.354 MB / 468.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.2946, allocations: 0.9289 MB / 469.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003152/0.295, allocations: 88.62 kB / 469.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002482/0.2952, allocations: 191.4 kB / 469.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2952, allocations: 0 / 469.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02799/0.3232, allocations: 12.17 MB / 481.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/0.3234, allocations: 208.2 kB / 482 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.047/2.371, allocations: 0 / 482 MB, free: 0.6406 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) Environment - environmentSimulation: