Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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.0008367/0.0008367, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.0008498/0.0008498, allocations: 181.3 kB / 17.2 MB, free: 5.914 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.299/1.299, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2731/0.2731, allocations: 38.04 MB / 309.7 MB, free: 8.898 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.0005005/0.0005006, allocations: 12 kB / 376.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09829/0.09881, allocations: 56.34 MB / 432.9 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006947/0.1058, allocations: 6.744 MB / 439.7 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00285/0.1087, allocations: 1.802 MB / 441.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000359/0.1091, allocations: 51.62 kB / 441.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.1094, allocations: 135.1 kB / 441.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008414/0.1102, allocations: 398.7 kB / 442 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005456/0.1108, allocations: 259.6 kB / 442.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006491/0.1115, allocations: 0.577 MB / 442.9 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003829/0.1118, allocations: 296.5 kB / 443.2 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004643/0.1123, allocations: 370.5 kB / 443.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005002/0.1128, allocations: 354.8 kB / 443.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.802e-05/0.1129, allocations: 32 kB / 443.9 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.808e-05/0.113, allocations: 28 kB / 443.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002805/0.1133, allocations: 275.3 kB / 444.2 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.1135, allocations: 161.3 kB / 444.4 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006228/0.1141, allocations: 0.6857 MB / 445 MB, free: 10.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.1141, allocations: 4 kB / 445 MB, free: 10.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1141, allocations: 0 / 445 MB, free: 10.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.1141, allocations: 0 / 445 MB, free: 10.44 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001632/0.1158, allocations: 1.016 MB / 446.1 MB, free: 9.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.1158, allocations: 12.03 kB / 446.1 MB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001266/0.116, allocations: 106.5 kB / 446.2 MB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.1161, allocations: 83.06 kB / 446.3 MB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009037/0.117, allocations: 0.5562 MB / 446.8 MB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.993e-05/0.1171, allocations: 112.7 kB / 446.9 MB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.643e-05/0.1172, allocations: 64 kB / 447 MB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.1186, allocations: 0.8769 MB / 447.9 MB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.1186, allocations: 0 / 447.9 MB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.993e-05/0.1187, allocations: 23.98 kB / 447.9 MB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/0.1188, allocations: 41.3 kB / 447.9 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.12, allocations: 0.6334 MB / 448.6 MB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003832/0.1238, allocations: 2.77 MB / 451.3 MB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.1255, allocations: 0.9205 MB / 452.3 MB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.1255, allocations: 8.375 kB / 452.3 MB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006834/0.1262, allocations: 362.4 kB / 452.6 MB, free: 2.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.834e-06/0.1262, allocations: 0 / 452.6 MB, free: 2.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.004394/0.1306, allocations: 1.996 MB / 454.6 MB, free: 388 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.489e-05/0.1307, allocations: 114.8 kB / 454.7 MB, free: 248 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1759/0.3066, allocations: 0.5105 MB / 455.2 MB, free: 51.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.3067, allocations: 36.89 kB / 455.3 MB, free: 51.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.307, allocations: 362.4 kB / 455.6 MB, free: 51.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.3071, allocations: 139.2 kB / 455.8 MB, free: 51.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/0.3071, allocations: 15.06 kB / 455.8 MB, free: 51.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.569e-05/0.3072, allocations: 366.8 kB / 456.1 MB, free: 51.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002955/0.3075, allocations: 206.4 kB / 456.3 MB, free: 51.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003255/0.3079, allocations: 371.1 kB / 456.7 MB, free: 51.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003625/0.3083, allocations: 297.9 kB / 457 MB, free: 51.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3083, allocations: 0 / 457 MB, free: 51.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001099/0.3094, allocations: 0.8445 MB / 457.8 MB, free: 51.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.228e-05/0.3094, allocations: 59.53 kB / 457.9 MB, free: 50.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.3095, allocations: 6.562 kB / 457.9 MB, free: 50.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002451/0.3097, allocations: 84.41 kB / 458 MB, free: 50.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003859/0.3101, allocations: 108.8 kB / 458.1 MB, free: 50.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/0.3118, allocations: 2.902 MB / 461 MB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.3121, allocations: 31.69 kB / 461 MB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.988e-05/0.3122, allocations: 44.77 kB / 461.1 MB, free: 48.38 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003258/0.3125, allocations: 274.3 kB / 461.3 MB, free: 48.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.276e-05/0.3126, allocations: 60.73 kB / 461.4 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.3139, allocations: 0.7087 MB / 462.1 MB, free: 48.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3139, allocations: 6.188 kB / 462.1 MB, free: 48.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3139, allocations: 5.391 kB / 462.1 MB, free: 48.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.3139, allocations: 5.625 kB / 462.1 MB, free: 48.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.3161, allocations: 1.534 MB / 463.6 MB, free: 47.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3161, allocations: 3.375 kB / 463.7 MB, free: 47.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.3164, allocations: 67.31 kB / 463.7 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002073/0.3166, allocations: 83.72 kB / 463.8 MB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.229e-05/0.3167, allocations: 16.27 kB / 463.8 MB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.3181, allocations: 2.895 MB / 466.7 MB, free: 44.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3181, allocations: 3.25 kB / 466.7 MB, free: 44.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.3199, allocations: 1.111 MB / 467.8 MB, free: 44.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/0.3201, allocations: 174.5 kB / 468 MB, free: 44.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.611e-05/0.3202, allocations: 32.16 kB / 468 MB, free: 44.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.3206, allocations: 46.81 kB / 468.1 MB, free: 44.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.901e-05/0.3207, allocations: 31.86 kB / 468.1 MB, free: 44.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.138e-05/0.3207, allocations: 16.98 kB / 468.1 MB, free: 44.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003542/0.3211, allocations: 359.8 kB / 468.5 MB, free: 44.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.3211, allocations: 0 / 468.5 MB, free: 44.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006019/0.3217, allocations: 148.8 kB / 468.6 MB, free: 44.32 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001998/0.3237, allocations: 1.887 MB / 470.5 MB, free: 43.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001199/0.3249, allocations: 0.8929 MB / 471.4 MB, free: 42.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3249, allocations: 0 / 471.4 MB, free: 42.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.3257, allocations: 0.5029 MB / 471.9 MB, free: 42.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006178/0.3263, allocations: 131 kB / 472 MB, free: 42.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005202/0.3315, allocations: 7.578 MB / 479.6 MB, free: 36.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.3319, allocations: 0.9949 MB / 480.6 MB, free: 36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002915/0.3322, allocations: 108.6 kB / 480.7 MB, free: 35.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.3324, allocations: 225.7 kB / 480.9 MB, free: 35.82 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3324, allocations: 0 / 480.9 MB, free: 35.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02446/0.3569, allocations: 12.43 MB / 493.4 MB, free: 34.86 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.3572, allocations: 208.7 kB / 493.6 MB, free: 34.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.97/2.327, allocations: 0.9688 kB / 493.6 MB, free: 34.61 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) Environment - environmentSimulation: