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.0007912/0.0007962, 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.0009278/0.000928, allocations: 175.2 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.3/1.3, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1619/0.1619, allocations: 38.05 MB / 310.1 MB, free: 6.008 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.0005432/0.0005432, allocations: 19.94 kB / 377.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2084, allocations: 56.33 MB / 433.6 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.005329/0.2138, allocations: 7.497 MB / 441.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002428/0.2162, allocations: 1.797 MB / 442.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007089/0.217, allocations: 51.62 kB / 442.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003138/0.2173, allocations: 99.3 kB / 443 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008878/0.2182, allocations: 402.3 kB / 443.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004134/0.2186, allocations: 199.8 kB / 443.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.2198, allocations: 1.64 MB / 445.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000342/0.2201, allocations: 336.2 kB / 445.6 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005156/0.2206, allocations: 406.1 kB / 446 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004917/0.2211, allocations: 0.5022 MB / 446.5 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.453e-05/0.2212, allocations: 35.98 kB / 446.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.855e-05/0.2213, allocations: 32 kB / 446.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.2215, allocations: 299.1 kB / 446.9 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.2218, allocations: 379.8 kB / 447.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005212/0.2223, allocations: 0.8524 MB / 448.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2223, allocations: 4 kB / 448.1 MB, free: 4.133 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2223, allocations: 4 kB / 448.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.353e-06/0.2223, allocations: 0 / 448.1 MB, free: 4.129 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001401/0.2237, allocations: 1.008 MB / 449.1 MB, free: 3.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.2238, allocations: 8.031 kB / 449.1 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.58e-05/0.2239, allocations: 110.7 kB / 449.2 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.224, allocations: 84 kB / 449.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005956/0.2246, allocations: 0.5727 MB / 449.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.345e-05/0.2247, allocations: 120.6 kB / 450 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.986e-05/0.2248, allocations: 64 kB / 450 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.2259, allocations: 0.8692 MB / 450.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.2259, allocations: 11.92 kB / 450.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.397e-05/0.226, allocations: 24 kB / 450.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.863e-05/0.2261, allocations: 41.28 kB / 451 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009331/0.227, allocations: 0.6257 MB / 451.6 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.2301, allocations: 2.786 MB / 454.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.2316, allocations: 0.9316 MB / 455.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006645/0.2323, allocations: 326.8 kB / 455.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.2323, allocations: 4.328 kB / 455.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006594/0.233, allocations: 366.7 kB / 456 MB, free: 11.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.783e-06/0.233, allocations: 4 kB / 456 MB, free: 11.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.003717/0.2367, allocations: 2.029 MB / 458 MB, free: 9.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.2368, allocations: 118.8 kB / 458.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004634/0.2373, allocations: 0.5182 MB / 458.7 MB, free: 8.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.304e-05/0.2373, allocations: 37.7 kB / 458.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.2375, allocations: 355.8 kB / 459.1 MB, free: 8.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.9e-05/0.2376, allocations: 145.9 kB / 459.2 MB, free: 8.445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.82e-05/0.2377, allocations: 57.69 kB / 459.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2378, allocations: 370.8 kB / 459.6 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/0.2381, allocations: 225.1 kB / 459.8 MB, free: 7.789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003787/0.2385, allocations: 390.2 kB / 460.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006691/0.2392, allocations: 0.6288 MB / 460.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2392, allocations: 0 / 460.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001069/0.2403, allocations: 0.8862 MB / 461.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.2403, allocations: 57.67 kB / 461.8 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.2403, allocations: 4 kB / 461.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.2406, allocations: 90 kB / 461.9 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/0.2409, allocations: 103.8 kB / 462 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.243, allocations: 2.993 MB / 465 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002939/0.2433, allocations: 39.97 kB / 465 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.998e-05/0.2433, allocations: 39.92 kB / 465.1 MB, free: 2.113 MB / 334.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,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002673/0.2436, allocations: 273.6 kB / 465.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.491e-05/0.2437, allocations: 59.34 kB / 465.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001364/0.245, allocations: 0.7354 MB / 466.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2451, allocations: 4 kB / 466.1 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.2451, allocations: 4 kB / 466.1 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.2451, allocations: 3.984 kB / 466.1 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.2472, allocations: 1.555 MB / 467.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.2472, allocations: 11.88 kB / 467.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002526/0.2475, allocations: 55.97 kB / 467.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002407/0.2478, allocations: 97.56 kB / 467.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.2478, allocations: 20.05 kB / 467.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.2498, allocations: 2.977 MB / 470.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2498, allocations: 3.938 kB / 470.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.2517, allocations: 1.102 MB / 471.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/0.2519, allocations: 168.4 kB / 472.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.426e-05/0.2519, allocations: 31.98 kB / 472.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/0.2523, allocations: 51.94 kB / 472.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-05/0.2524, allocations: 31.89 kB / 472.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.2524, allocations: 16 kB / 472.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003215/0.2528, allocations: 354.8 kB / 472.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2528, allocations: 3.938 kB / 472.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005436/0.2533, allocations: 152 kB / 472.7 MB, free: 9.953 MB / 350.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 (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002101/0.2554, allocations: 1.679 MB / 474.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.2567, allocations: 0.9069 MB / 475.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.2567, allocations: 0 / 475.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008155/0.2576, allocations: 0.517 MB / 475.8 MB, free: 6.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007714/0.2583, allocations: 130.2 kB / 476 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006772/0.2651, allocations: 6.547 MB / 482.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004631/0.2656, allocations: 0.9757 MB / 483.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002815/0.2659, allocations: 108.9 kB / 483.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.2661, allocations: 227.3 kB / 483.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2662, allocations: 0 / 483.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7396/1.006, allocations: 12.4 MB / 496.2 MB, free: 2.074 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002731/1.006, allocations: 229.8 kB / 496.4 MB, free: 1.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.25/3.257, allocations: 0 / 496.4 MB, free: 1.809 MB / 366.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/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)