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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: "" <> 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.001267/0.001267, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001292/0.001292, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.305/1.305, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1708/0.1708, allocations: 38.02 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002244/0.002244, allocations: 67.03 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1128, allocations: 58.06 MB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008243/0.1211, allocations: 6.589 MB / 463.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.1238, allocations: 1.756 MB / 465.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004536/0.1243, allocations: 19.88 kB / 465.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006864/0.125, allocations: 226.4 kB / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009347/0.126, allocations: 381.9 kB / 465.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004966/0.1265, allocations: 235.6 kB / 466.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001155/0.1276, allocations: 1.067 MB / 467.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006175/0.1283, allocations: 0.5061 MB / 467.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007155/0.129, allocations: 470.2 kB / 468.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007908/0.1298, allocations: 486.4 kB / 468.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001909/0.13, allocations: 84 kB / 468.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002421/0.1303, allocations: 84 kB / 468.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003221/0.1306, allocations: 279.2 kB / 469.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005448/0.1311, allocations: 410.3 kB / 469.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009586/0.1321, allocations: 1.028 MB / 470.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1321, allocations: 0 / 470.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1321, allocations: 0 / 470.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.48e-05/0.1322, allocations: 0 / 470.5 MB, free: 10.3 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.002315/0.1345, allocations: 1.017 MB / 471.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1345, allocations: 15.89 kB / 471.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000145/0.1347, allocations: 106.7 kB / 471.7 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.1348, allocations: 76.09 kB / 471.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.136, allocations: 0.6212 MB / 472.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.1361, allocations: 121 kB / 472.5 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.1363, allocations: 60 kB / 472.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.1375, allocations: 0.7421 MB / 473.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.1375, allocations: 0 / 473.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.609e-05/0.1376, allocations: 28 kB / 473.3 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.1376, allocations: 16 kB / 473.3 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.1388, allocations: 0.5972 MB / 473.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003177/0.142, allocations: 2.472 MB / 476.4 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008322/0.1428, allocations: 420.5 kB / 476.8 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004065/0.1432, allocations: 207.1 kB / 477 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.1433, allocations: 4.281 kB / 477 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004261/0.1437, allocations: 247.3 kB / 477.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 1.833e-06/0.1437, allocations: 0 / 477.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003174/0.1469, allocations: 0.8784 MB / 478.1 MB, free: 2.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.147, allocations: 140.5 kB / 478.3 MB, free: 2.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004223/0.1474, allocations: 405.8 kB / 478.7 MB, free: 1.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.1475, allocations: 29.7 kB / 478.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.1477, allocations: 316.1 kB / 479 MB, free: 1.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.867e-05/0.1478, allocations: 122.3 kB / 479.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.1479, allocations: 86.06 kB / 479.2 MB, free: 1.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.148, allocations: 350.8 kB / 479.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.1483, allocations: 128.8 kB / 479.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003977/0.1488, allocations: 250 kB / 479.9 MB, free: 476 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.1504, allocations: 0.6633 MB / 480.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1504, allocations: 4 kB / 480.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001009/0.1514, allocations: 0.521 MB / 481.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1514, allocations: 4 kB / 481.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.1514, allocations: 4 kB / 481.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004563/0.1519, allocations: 152.9 kB / 481.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.1522, allocations: 75.91 kB / 481.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003591/0.1558, allocations: 2.271 MB / 483.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004224/0.1562, allocations: 51.52 kB / 483.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.1563, allocations: 20 kB / 483.7 MB, free: 12.5 MB / 366.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.0003108/0.1566, allocations: 236 kB / 483.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.738e-05/0.1567, allocations: 55.36 kB / 484 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.158, allocations: 490.5 kB / 484.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.158, allocations: 4 kB / 484.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.158, allocations: 0 / 484.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.158, allocations: 0 / 484.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007941/0.1588, allocations: 0.6784 MB / 485.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.1588, allocations: 4 kB / 485.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/0.1591, allocations: 47.91 kB / 485.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004134/0.1595, allocations: 144.8 kB / 485.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.1595, allocations: 8 kB / 485.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00315/0.1627, allocations: 2.26 MB / 487.6 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1627, allocations: 0 / 487.6 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.1643, allocations: 0.6881 MB / 488.3 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.1644, allocations: 152.5 kB / 488.4 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.192e-05/0.1645, allocations: 4 kB / 488.4 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.1648, allocations: 27.86 kB / 488.4 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.1649, allocations: 31.95 kB / 488.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.1649, allocations: 19.98 kB / 488.5 MB, free: 7.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002956/0.1652, allocations: 279.2 kB / 488.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1652, allocations: 0 / 488.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006364/0.1659, allocations: 167.4 kB / 488.9 MB, free: 6.977 MB / 366.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.00189/0.1678, allocations: 1.243 MB / 490.2 MB, free: 5.688 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.169, allocations: 0.5341 MB / 490.7 MB, free: 5.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.169, allocations: 0 / 490.7 MB, free: 5.141 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005786/0.1696, allocations: 338.4 kB / 491 MB, free: 4.797 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006857/0.1703, allocations: 161.8 kB / 491.2 MB, free: 4.637 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006723/0.177, allocations: 4.605 MB / 495.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005547/0.1776, allocations: 0.9289 MB / 496.7 MB, free: 14.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003298/0.1779, allocations: 84.62 kB / 496.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002626/0.1782, allocations: 199.3 kB / 497 MB, free: 14.59 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1782, allocations: 0 / 497 MB, free: 14.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04021/0.2184, allocations: 13.03 MB / 0.4981 GB, free: 1.758 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/10.98, allocations: 7.484 kB / 0.4981 GB, free: 1.754 MB / 382.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)