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.0008639/0.0008639, allocations: 89.8 kB / 16.65 MB, free: 6.535 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.0007495/0.0007495, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.127/1.127, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1529/0.1529, allocations: 38.05 MB / 310.1 MB, free: 5.914 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.0004477/0.0004477, allocations: 12 kB / 377.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.1882, allocations: 56.33 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.004731/0.193, allocations: 6.766 MB / 440.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.1948, allocations: 1.956 MB / 442.3 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.1951, allocations: 31.81 kB / 442.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004355/0.1955, allocations: 202.8 kB / 442.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004547/0.196, allocations: 350.3 kB / 442.9 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002628/0.1963, allocations: 195.8 kB / 443.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007678/0.1971, allocations: 1.418 MB / 444.5 MB, free: 7.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003705/0.1974, allocations: 424.9 kB / 444.9 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003275/0.1978, allocations: 374.3 kB / 445.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004122/0.1982, allocations: 450.3 kB / 445.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.276e-05/0.1983, allocations: 40 kB / 445.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.47e-05/0.1983, allocations: 36 kB / 445.8 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.1985, allocations: 227.3 kB / 446 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002172/0.1987, allocations: 368 kB / 446.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004918/0.1992, allocations: 0.9732 MB / 447.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1992, allocations: 4 kB / 447.3 MB, free: 4.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1992, allocations: 4 kB / 447.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.1992, allocations: 0 / 447.4 MB, free: 4.824 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.001287/0.2005, allocations: 0.9043 MB / 448.3 MB, free: 3.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.2006, allocations: 8.031 kB / 448.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.412e-05/0.2007, allocations: 110.6 kB / 448.4 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.566e-05/0.2008, allocations: 80 kB / 448.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007591/0.2015, allocations: 0.6215 MB / 449.1 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.967e-05/0.2017, allocations: 113 kB / 449.2 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.653e-05/0.2017, allocations: 60 kB / 449.2 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009834/0.2027, allocations: 0.7616 MB / 450 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.2027, allocations: 4 kB / 450 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.832e-05/0.2028, allocations: 24 kB / 450 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.2028, allocations: 16 kB / 450 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009534/0.2038, allocations: 0.6284 MB / 450.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.2063, allocations: 2.471 MB / 453.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007893/0.2071, allocations: 428.8 kB / 453.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003702/0.2075, allocations: 199.1 kB / 453.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.2075, allocations: 8.281 kB / 453.8 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003973/0.2079, allocations: 251.1 kB / 454 MB, free: 13.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 1.523e-06/0.2079, allocations: 0 / 454 MB, free: 13.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.002896/0.2108, allocations: 0.8777 MB / 454.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.2109, allocations: 136.5 kB / 455 MB, free: 12.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003662/0.2113, allocations: 405.9 kB / 455.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.2113, allocations: 33.7 kB / 455.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.2115, allocations: 320.1 kB / 455.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.856e-05/0.2116, allocations: 114.4 kB / 455.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.2116, allocations: 49.69 kB / 455.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.2117, allocations: 354.8 kB / 456.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.212, allocations: 132.8 kB / 456.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.2124, allocations: 246 kB / 456.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.2137, allocations: 0.6522 MB / 457.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.2137, allocations: 4 kB / 457.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009267/0.2147, allocations: 0.5171 MB / 457.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.2147, allocations: 8 kB / 457.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2147, allocations: 4 kB / 457.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004125/0.2151, allocations: 144.9 kB / 458 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.2154, allocations: 91.83 kB / 458.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002818/0.2182, allocations: 2.037 MB / 460.1 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000267/0.2185, allocations: 55.52 kB / 460.1 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.668e-05/0.2185, allocations: 16 kB / 460.2 MB, free: 7.371 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.0002467/0.2188, allocations: 249.7 kB / 460.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.424e-05/0.2189, allocations: 47.44 kB / 460.5 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001159/0.22, allocations: 482.6 kB / 460.9 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.22, allocations: 4 kB / 460.9 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.22, allocations: 4 kB / 460.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2201, allocations: 3.938 kB / 460.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006244/0.2207, allocations: 0.6861 MB / 461.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2207, allocations: 0 / 461.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002159/0.2209, allocations: 51.94 kB / 461.7 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003767/0.2213, allocations: 140.8 kB / 461.8 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.2213, allocations: 11.94 kB / 461.8 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002649/0.224, allocations: 2.031 MB / 463.9 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.224, allocations: 8.062 kB / 463.9 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.2255, allocations: 0.7019 MB / 464.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.2256, allocations: 148.5 kB / 464.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/0.2257, allocations: 4 kB / 464.7 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.2259, allocations: 23.97 kB / 464.7 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-05/0.226, allocations: 35.95 kB / 464.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.226, allocations: 12 kB / 464.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002529/0.2263, allocations: 287.1 kB / 465.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2263, allocations: 0 / 465.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004851/0.2268, allocations: 163.4 kB / 465.2 MB, free: 2.039 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.001643/0.2284, allocations: 1.236 MB / 466.5 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008676/0.2293, allocations: 0.4945 MB / 467 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2293, allocations: 4 kB / 467 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004872/0.2298, allocations: 339 kB / 467.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006404/0.2304, allocations: 145.6 kB / 467.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006048/0.2365, allocations: 4.924 MB / 472.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.2369, allocations: 0.9328 MB / 473.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002624/0.2372, allocations: 84.62 kB / 473.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/0.2374, allocations: 187.4 kB / 473.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2374, allocations: 0 / 473.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5907/0.8281, allocations: 12.25 MB / 485.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/0.8283, allocations: 228.1 kB / 486 MB, free: 12.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.027/2.856, allocations: 0 / 486 MB, free: 12.94 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)