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.00123/0.001229, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001264/0.001264, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.331/1.331, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1673/0.1673, allocations: 37.99 MB / 308.6 MB, free: 6.219 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.001376/0.001376, allocations: 67.03 kB / 374.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2497, allocations: 55.23 MB / 430 MB, free: 19.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.00707/0.2568, allocations: 7.217 MB / 437.2 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002966/0.2598, allocations: 1.968 MB / 439.1 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004548/0.2603, allocations: 35.81 kB / 439.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006266/0.2609, allocations: 198.8 kB / 439.4 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000634/0.2616, allocations: 346.3 kB / 439.7 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003694/0.262, allocations: 207.8 kB / 439.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008384/0.2629, allocations: 1.422 MB / 441.3 MB, free: 8.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004156/0.2633, allocations: 424.9 kB / 441.8 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004364/0.2637, allocations: 394.3 kB / 442.1 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004964/0.2642, allocations: 490.2 kB / 442.6 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.03e-05/0.2643, allocations: 56 kB / 442.7 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.2644, allocations: 48 kB / 442.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.2646, allocations: 235.4 kB / 442.9 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002638/0.2649, allocations: 374.2 kB / 443.3 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005954/0.2655, allocations: 1.001 MB / 444.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.2655, allocations: 0 / 444.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2655, allocations: 0 / 444.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.2655, allocations: 0 / 444.3 MB, free: 5.324 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.001783/0.2673, allocations: 1.017 MB / 445.3 MB, free: 4.258 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.2674, allocations: 15.97 kB / 445.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.2675, allocations: 106.7 kB / 445.5 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.2676, allocations: 72.09 kB / 445.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000911/0.2686, allocations: 0.6214 MB / 446.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.2687, allocations: 113 kB / 446.3 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-05/0.2688, allocations: 68 kB / 446.3 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.2698, allocations: 0.7421 MB / 447.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.2699, allocations: 0 / 447.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.176e-05/0.2699, allocations: 24 kB / 447.1 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.2699, allocations: 16 kB / 447.1 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009464/0.2709, allocations: 0.6011 MB / 447.7 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/0.2736, allocations: 2.468 MB / 450.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008588/0.2744, allocations: 420.9 kB / 450.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00044/0.2749, allocations: 207.1 kB / 450.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.2749, allocations: 4.281 kB / 450.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004431/0.2754, allocations: 255.1 kB / 451 MB, free: 14.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 1.713e-06/0.2754, allocations: 0 / 451 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.002877/0.2783, allocations: 0.8736 MB / 451.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.066e-05/0.2784, allocations: 136.5 kB / 452 MB, free: 13.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004066/0.2788, allocations: 398 kB / 452.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.2788, allocations: 29.7 kB / 452.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.279, allocations: 324.1 kB / 452.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.873e-05/0.2791, allocations: 118.3 kB / 452.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.2793, allocations: 82.16 kB / 453 MB, free: 12.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.2794, allocations: 354.8 kB / 453.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.2797, allocations: 124.8 kB / 453.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.2801, allocations: 254 kB / 453.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.2816, allocations: 0.6635 MB / 454.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.2816, allocations: 0 / 454.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001023/0.2826, allocations: 0.5132 MB / 454.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.2826, allocations: 8 kB / 454.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.2827, allocations: 0 / 454.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000459/0.2831, allocations: 164.9 kB / 455 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/0.2834, allocations: 67.91 kB / 455.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003256/0.2867, allocations: 2.058 MB / 457.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.287, allocations: 51.5 kB / 457.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.2871, allocations: 20 kB / 457.2 MB, free: 7.77 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,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003714/0.2875, allocations: 241.7 kB / 457.5 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.316e-05/0.2875, allocations: 43.44 kB / 457.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.2887, allocations: 486.5 kB / 458 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.2888, allocations: 11.98 kB / 458 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.2888, allocations: 0 / 458 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.2888, allocations: 3.938 kB / 458 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007823/0.2896, allocations: 0.6707 MB / 458.7 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.2896, allocations: 4 kB / 458.7 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.2898, allocations: 43.95 kB / 458.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004214/0.2902, allocations: 156.8 kB / 458.9 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.978e-05/0.2903, allocations: 7.938 kB / 458.9 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002909/0.2932, allocations: 2.035 MB / 460.9 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2932, allocations: 0 / 460.9 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/0.2947, allocations: 0.7019 MB / 461.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.2949, allocations: 152.5 kB / 461.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.625e-05/0.295, allocations: 8 kB / 461.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.2952, allocations: 15.98 kB / 461.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.494e-05/0.2953, allocations: 35.94 kB / 461.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.2953, allocations: 12 kB / 461.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003089/0.2956, allocations: 283.1 kB / 462.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2956, allocations: 0 / 462.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006038/0.2962, allocations: 167.5 kB / 462.3 MB, free: 2.457 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001733/0.298, allocations: 1.228 MB / 463.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009774/0.299, allocations: 0.51 MB / 464 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.299, allocations: 0 / 464 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005133/0.2995, allocations: 338.3 kB / 464.3 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006734/0.3002, allocations: 150.6 kB / 464.5 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006956/0.3072, allocations: 4.834 MB / 469.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005227/0.3077, allocations: 0.9288 MB / 470.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003004/0.308, allocations: 88.56 kB / 470.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.3083, allocations: 191.4 kB / 470.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3083, allocations: 4 kB / 470.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.3355, allocations: 12.37 MB / 482.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002218/0.3358, allocations: 224.8 kB / 483.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.05/2.386, allocations: 0 / 483.1 MB, free: 13.28 MB / 366.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/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)