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.001133/0.001133, allocations: 111.8 kB / 17.06 MB, free: 6.004 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.001224/0.001224, allocations: 198.9 kB / 18 MB, free: 5.082 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.313/1.313, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1757/0.1757, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.001417/0.001417, allocations: 71.88 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08071/0.08214, allocations: 55.24 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007503/0.08968, allocations: 6.589 MB / 493.2 MB, free: 2.219 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002737/0.09244, allocations: 1.785 MB / 495 MB, free: 436 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004462/0.09291, allocations: 23.88 kB / 495 MB, free: 412 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006783/0.09362, allocations: 230.4 kB / 495.2 MB, free: 180 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009154/0.09456, allocations: 381.8 kB / 495.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004979/0.09507, allocations: 223.7 kB / 495.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.09624, allocations: 1.075 MB / 496.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005853/0.09684, allocations: 0.5061 MB / 497.4 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006971/0.09755, allocations: 482.3 kB / 497.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007308/0.09829, allocations: 490.3 kB / 498.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.09843, allocations: 84 kB / 498.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.0986, allocations: 88 kB / 498.5 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002475/0.09885, allocations: 275.3 kB / 498.8 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003927/0.09925, allocations: 410.2 kB / 499.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008745/0.1001, allocations: 1.04 MB / 0.4885 GB, free: 11.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1002, allocations: 7.984 kB / 0.4885 GB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1002, allocations: 0 / 0.4885 GB, free: 11.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.031e-05/0.1002, allocations: 0 / 0.4885 GB, free: 11.14 MB / 382.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.001947/0.1021, allocations: 1.009 MB / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.1022, allocations: 11.89 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.1023, allocations: 110.7 kB / 0.4896 GB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.1024, allocations: 72.09 kB / 0.4897 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.1036, allocations: 0.6525 MB / 0.4903 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.1037, allocations: 121 kB / 0.4904 GB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.608e-05/0.1038, allocations: 60 kB / 0.4905 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.105, allocations: 0.746 MB / 0.4912 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.105, allocations: 0 / 0.4912 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.177e-05/0.1051, allocations: 28 kB / 0.4912 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.1051, allocations: 12 kB / 0.4913 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.1063, allocations: 0.6011 MB / 0.4918 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003176/0.1095, allocations: 2.467 MB / 0.4943 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008655/0.1104, allocations: 418.2 kB / 0.4947 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004166/0.1108, allocations: 207.6 kB / 0.4949 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.1108, allocations: 4.281 kB / 0.4949 GB, free: 4.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004352/0.1113, allocations: 251.3 kB / 0.4951 GB, free: 4.105 MB / 382.1 MB Notification: Performance of pre-optimization done (n=36): time 1.833e-06/0.1113, allocations: 0 / 0.4951 GB, free: 4.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.003214/0.1145, allocations: 0.8736 MB / 0.4959 GB, free: 3.203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.724e-05/0.1146, allocations: 136.5 kB / 0.4961 GB, free: 3.039 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004219/0.115, allocations: 405.8 kB / 0.4965 GB, free: 2.633 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.1151, allocations: 33.73 kB / 0.4965 GB, free: 2.594 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.1153, allocations: 312.1 kB / 0.4968 GB, free: 2.285 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.1154, allocations: 122.4 kB / 0.4969 GB, free: 2.164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.1155, allocations: 82.12 kB / 0.497 GB, free: 2.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1157, allocations: 354.8 kB / 0.4973 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002934/0.116, allocations: 124.8 kB / 0.4974 GB, free: 1.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/0.1163, allocations: 257.9 kB / 0.4977 GB, free: 1.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.1178, allocations: 0.6528 MB / 0.4983 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1178, allocations: 0 / 0.4983 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001031/0.1189, allocations: 0.5215 MB / 0.4988 GB, free: 68 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1189, allocations: 11.98 kB / 0.4989 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.1189, allocations: 4 kB / 0.4989 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004661/0.1194, allocations: 148.8 kB / 0.499 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/0.1197, allocations: 71.91 kB / 0.4991 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/0.1232, allocations: 2.267 MB / 0.5013 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003372/0.1235, allocations: 59.56 kB / 0.5013 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.1236, allocations: 19.94 kB / 0.5014 GB, free: 13.34 MB / 398.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.000317/0.1239, allocations: 241.7 kB / 0.5016 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.465e-05/0.124, allocations: 51.38 kB / 0.5016 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001275/0.1252, allocations: 486.5 kB / 0.5021 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1253, allocations: 11.83 kB / 0.5021 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.1253, allocations: 3.984 kB / 0.5021 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.1253, allocations: 4 kB / 0.5021 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007942/0.1261, allocations: 0.6785 MB / 0.5028 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1261, allocations: 0 / 0.5028 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.1263, allocations: 43.92 kB / 0.5028 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004289/0.1268, allocations: 156.7 kB / 0.503 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.1268, allocations: 8 kB / 0.503 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003195/0.13, allocations: 2.248 MB / 0.5052 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.13, allocations: 0 / 0.5052 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.1317, allocations: 0.6979 MB / 0.5059 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.1319, allocations: 148.6 kB / 0.506 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.756e-05/0.132, allocations: 12 kB / 0.506 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.1322, allocations: 20.11 kB / 0.506 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.685e-05/0.1324, allocations: 31.95 kB / 0.5061 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.878e-05/0.1324, allocations: 15.94 kB / 0.5061 GB, free: 8.246 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002838/0.1327, allocations: 283.1 kB / 0.5063 GB, free: 7.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1327, allocations: 4 kB / 0.5063 GB, free: 7.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005584/0.1333, allocations: 159.4 kB / 0.5065 GB, free: 7.809 MB / 398.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.001824/0.1351, allocations: 1.241 MB / 0.5077 GB, free: 6.523 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.1361, allocations: 0.4992 MB / 0.5082 GB, free: 6.012 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.1361, allocations: 0 / 0.5082 GB, free: 6.012 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005381/0.1367, allocations: 334.3 kB / 0.5085 GB, free: 5.672 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006487/0.1373, allocations: 169.9 kB / 0.5087 GB, free: 5.504 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006584/0.1439, allocations: 4.556 MB / 0.5131 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004895/0.1444, allocations: 0.9289 MB / 0.514 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002669/0.1447, allocations: 80.64 kB / 0.5141 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.1449, allocations: 195.4 kB / 0.5143 GB, free: 15.51 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.145, allocations: 0 / 0.5143 GB, free: 15.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03671/0.1817, allocations: 13.45 MB / 0.5274 GB, free: 1.988 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/11.95, allocations: 8 kB / 0.5274 GB, free: 1.98 MB / 414.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)