Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008951/0.0008951, allocations: 171.6 kB / 16.07 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.223/1.223, allocations: 205.4 MB / 222.2 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007902/0.0007904, allocations: 92.8 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1592/0.1592, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005244/0.0005246, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2567, allocations: 56.33 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006416/0.2632, allocations: 7.117 MB / 486.9 MB, free: 4.395 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.2662, allocations: 1.748 MB / 488.6 MB, free: 3.141 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009526/0.2672, allocations: 53.31 kB / 488.7 MB, free: 3.117 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005424/0.2678, allocations: 141.3 kB / 488.8 MB, free: 3.047 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001401/0.2692, allocations: 495.2 kB / 489.3 MB, free: 2.781 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007307/0.2699, allocations: 266.9 kB / 489.5 MB, free: 2.656 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001341/0.2713, allocations: 1.31 MB / 490.8 MB, free: 2.176 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004008/0.2717, allocations: 330.6 kB / 491.2 MB, free: 2.055 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005541/0.2722, allocations: 410.9 kB / 491.6 MB, free: 1.895 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006228/0.2729, allocations: 0.499 MB / 492.1 MB, free: 1.73 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.546e-05/0.273, allocations: 30.62 kB / 492.1 MB, free: 1.73 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.2731, allocations: 31.81 kB / 492.1 MB, free: 1.73 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002949/0.2734, allocations: 297 kB / 492.4 MB, free: 1.648 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003079/0.2737, allocations: 365.2 kB / 492.8 MB, free: 1.438 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006826/0.2744, allocations: 0.6857 MB / 493.5 MB, free: 1.289 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2744, allocations: 0 / 493.5 MB, free: 1.289 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2744, allocations: 0.75 kB / 493.5 MB, free: 1.289 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.2744, allocations: 1.25 kB / 493.5 MB, free: 1.289 MB / 314.7 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.001584/0.276, allocations: 1.009 MB / 494.5 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.2761, allocations: 8.688 kB / 494.5 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.2762, allocations: 110.4 kB / 494.6 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.2763, allocations: 84.3 kB / 494.7 MB, free: 464 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007588/0.2771, allocations: 0.5784 MB / 495.3 MB, free: 68 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.2772, allocations: 117.5 kB / 495.4 MB, free: 15.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.2773, allocations: 60.33 kB / 495.4 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.279, allocations: 0.8739 MB / 496.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.279, allocations: 1.094 kB / 496.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.513e-05/0.279, allocations: 27.41 kB / 496.3 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.2792, allocations: 38.17 kB / 496.4 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.2804, allocations: 0.6346 MB / 497 MB, free: 15.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003646/0.2841, allocations: 2.781 MB / 499.8 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.2858, allocations: 0.9194 MB / 0.489 GB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007411/0.2866, allocations: 333.5 kB / 0.4893 GB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.2866, allocations: 4.141 kB / 0.4893 GB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007424/0.2873, allocations: 368.2 kB / 0.4896 GB, free: 12.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 2.134e-06/0.2874, allocations: 0 / 0.4896 GB, free: 12.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.004354/0.2917, allocations: 2.033 MB / 0.4916 GB, free: 10.93 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.2918, allocations: 117.9 kB / 0.4917 GB, free: 10.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006186/0.2924, allocations: 0.4997 MB / 0.4922 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.723e-05/0.2925, allocations: 47.38 kB / 0.4923 GB, free: 10.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002521/0.2927, allocations: 349.9 kB / 0.4926 GB, free: 10.15 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.2929, allocations: 141.6 kB / 0.4927 GB, free: 10.03 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/0.2929, allocations: 11.84 kB / 0.4927 GB, free: 10.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.293, allocations: 370 kB / 0.4931 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003457/0.2934, allocations: 224.9 kB / 0.4933 GB, free: 9.555 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004191/0.2938, allocations: 386.3 kB / 0.4937 GB, free: 9.242 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007684/0.2946, allocations: 0.6199 MB / 0.4943 GB, free: 8.781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.2946, allocations: 1.531 kB / 0.4943 GB, free: 8.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001262/0.2959, allocations: 0.8857 MB / 0.4952 GB, free: 8.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.356e-05/0.2959, allocations: 49.31 kB / 0.4952 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.296, allocations: 4.688 kB / 0.4952 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002919/0.2963, allocations: 92.44 kB / 0.4953 GB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.2967, allocations: 107.1 kB / 0.4954 GB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/0.299, allocations: 2.994 MB / 0.4983 GB, free: 5.184 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003771/0.2994, allocations: 30.27 kB / 0.4984 GB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.483e-05/0.2995, allocations: 40.62 kB / 0.4984 GB, free: 5.16 MB / 330.7 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 (66): * Single equations (assignments): 63 * 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%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004021/0.2999, allocations: 278.5 kB / 0.4987 GB, free: 4.945 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.773e-05/0.3, allocations: 62.05 kB / 0.4987 GB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.3015, allocations: 0.7366 MB / 0.4994 GB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3015, allocations: 5.5 kB / 0.4994 GB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3015, allocations: 1.375 kB / 0.4994 GB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.3015, allocations: 5.359 kB / 0.4994 GB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002416/0.3039, allocations: 1.544 MB / 0.501 GB, free: 3.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.304, allocations: 9.656 kB / 0.501 GB, free: 3.336 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.3042, allocations: 65.95 kB / 0.501 GB, free: 3.316 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002639/0.3045, allocations: 90.94 kB / 0.5011 GB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.981e-05/0.3046, allocations: 16.27 kB / 0.5011 GB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/0.3067, allocations: 2.984 MB / 0.504 GB, free: 324 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3068, allocations: 2 kB / 0.504 GB, free: 324 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002075/0.3088, allocations: 1.102 MB / 0.5051 GB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.3091, allocations: 172.4 kB / 0.5053 GB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.286e-05/0.3092, allocations: 31.92 kB / 0.5053 GB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003901/0.3096, allocations: 47.94 kB / 0.5054 GB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.053e-05/0.3097, allocations: 27.91 kB / 0.5054 GB, free: 15.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.3097, allocations: 23.98 kB / 0.5054 GB, free: 15.07 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003877/0.3101, allocations: 354.8 kB / 0.5057 GB, free: 14.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3101, allocations: 0 / 0.5057 GB, free: 14.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006676/0.3108, allocations: 148 kB / 0.5059 GB, free: 14.59 MB / 346.7 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 (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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002301/0.3131, allocations: 1.671 MB / 0.5075 GB, free: 12.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.3146, allocations: 0.9104 MB / 0.5084 GB, free: 11.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3147, allocations: 4 kB / 0.5084 GB, free: 11.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009209/0.3156, allocations: 0.5019 MB / 0.5089 GB, free: 11.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008444/0.3164, allocations: 139 kB / 0.509 GB, free: 11.24 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006318/0.3228, allocations: 4.441 MB / 0.5134 GB, free: 6.641 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005775/0.3234, allocations: 0.9721 MB / 0.5143 GB, free: 5.641 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003233/0.3237, allocations: 223.4 kB / 0.5145 GB, free: 5.422 MB / 346.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3237, allocations: 8 kB / 0.5145 GB, free: 5.414 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.569/4.892, allocations: 15.3 MB / 0.5295 GB, free: 6.082 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)