Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.0009363/0.0009362, allocations: 174.6 kB / 16.07 MB, free: 5.723 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.275/1.275, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.0007586/0.0007585, allocations: 92.8 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1616/0.1616, allocations: 38.07 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003368/0.0003369, allocations: 16 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2259, allocations: 56.32 MB / 479.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.00574/0.2316, allocations: 6.274 MB / 486 MB, free: 5.02 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002792/0.2345, allocations: 1.834 MB / 487.8 MB, free: 3.723 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006677/0.2352, allocations: 48.16 kB / 487.9 MB, free: 3.699 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007074/0.2359, allocations: 148 kB / 488 MB, free: 3.625 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0014/0.2373, allocations: 392.7 kB / 488.4 MB, free: 3.41 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008409/0.2381, allocations: 286.4 kB / 488.7 MB, free: 3.285 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001592/0.2398, allocations: 1.373 MB / 490.1 MB, free: 2.762 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004331/0.2402, allocations: 312.1 kB / 490.4 MB, free: 2.641 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008678/0.2411, allocations: 439.3 kB / 490.8 MB, free: 2.488 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000938/0.242, allocations: 0.5091 MB / 491.3 MB, free: 2.328 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001798/0.2422, allocations: 38.22 kB / 491.4 MB, free: 2.328 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002271/0.2425, allocations: 42.91 kB / 491.4 MB, free: 2.324 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004007/0.2429, allocations: 295 kB / 491.7 MB, free: 2.238 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005446/0.2434, allocations: 359.6 kB / 492 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009177/0.2443, allocations: 0.802 MB / 492.8 MB, free: 1.883 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2444, allocations: 0 / 492.8 MB, free: 1.883 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2444, allocations: 1.312 kB / 492.8 MB, free: 1.883 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.953e-05/0.2444, allocations: 0 / 492.8 MB, free: 1.883 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002548/0.2469, allocations: 1.084 MB / 493.9 MB, free: 1.195 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.247, allocations: 12.67 kB / 493.9 MB, free: 1.191 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002689/0.2473, allocations: 109.2 kB / 494 MB, free: 1.113 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002221/0.2475, allocations: 82.75 kB / 494.1 MB, free: 1.078 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.2488, allocations: 0.6279 MB / 494.7 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004062/0.2492, allocations: 357.5 kB / 495.1 MB, free: 404 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.2494, allocations: 55.45 kB / 495.2 MB, free: 388 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002393/0.2518, allocations: 1.101 MB / 496.3 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.2518, allocations: 0 / 496.3 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.911e-05/0.2519, allocations: 22.97 kB / 496.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.2519, allocations: 17.67 kB / 496.3 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002918/0.2548, allocations: 1.202 MB / 497.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004934/0.2598, allocations: 3.262 MB / 0.489 GB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002206/0.262, allocations: 0.8326 MB / 0.4898 GB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.2635, allocations: 0.5983 MB / 0.4904 GB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.667e-05/0.2635, allocations: 12.56 kB / 0.4904 GB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001528/0.2651, allocations: 0.6806 MB / 0.4911 GB, free: 12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.836e-06/0.2651, allocations: 0 / 0.4911 GB, free: 12 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.004018/0.2691, allocations: 1.56 MB / 0.4926 GB, free: 11.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.38e-05/0.2692, allocations: 141.3 kB / 0.4928 GB, free: 11.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.2696, allocations: 385.8 kB / 0.4931 GB, free: 10.88 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.825e-05/0.2697, allocations: 39.11 kB / 0.4932 GB, free: 10.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/0.2699, allocations: 293.9 kB / 0.4934 GB, free: 10.58 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.2701, allocations: 168.4 kB / 0.4936 GB, free: 10.44 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.557e-05/0.2701, allocations: 14.47 kB / 0.4936 GB, free: 10.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.2703, allocations: 363.1 kB / 0.494 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.2713, allocations: 0.4953 MB / 0.4944 GB, free: 9.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.2724, allocations: 0.6002 MB / 0.495 GB, free: 9.488 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/0.2744, allocations: 0.984 MB / 0.496 GB, free: 8.949 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.2744, allocations: 1.344 kB / 0.496 GB, free: 8.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002401/0.2768, allocations: 1.182 MB / 0.4971 GB, free: 8.379 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.429e-05/0.2769, allocations: 56.03 kB / 0.4972 GB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.2769, allocations: 3 kB / 0.4972 GB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.2769, allocations: 6.531 kB / 0.4972 GB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005981/0.2829, allocations: 1.588 MB / 0.4988 GB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007444/0.2904, allocations: 4.836 MB / 0.5035 GB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007852/0.2912, allocations: 143.4 kB / 0.5036 GB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.2913, allocations: 39.97 kB / 0.5037 GB, free: 1.602 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004313/0.2917, allocations: 239.4 kB / 0.5039 GB, free: 1.355 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.2919, allocations: 47.44 kB / 0.5039 GB, free: 1.309 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00272/0.2946, allocations: 1.114 MB / 0.505 GB, free: 192 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.2946, allocations: 8 kB / 0.505 GB, free: 184 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.2946, allocations: 0 / 0.505 GB, free: 184 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.2946, allocations: 7.938 kB / 0.505 GB, free: 176 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004058/0.2987, allocations: 2.246 MB / 0.5072 GB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.2987, allocations: 4 kB / 0.5072 GB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007215/0.3059, allocations: 1.838 MB / 0.509 GB, free: 12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.294e-05/0.306, allocations: 4 kB / 0.509 GB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.949e-05/0.306, allocations: 19.92 kB / 0.509 GB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.306, allocations: 4 kB / 0.5091 GB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3061, allocations: 7.938 kB / 0.5091 GB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004056/0.3101, allocations: 1.871 MB / 0.5109 GB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.3104, allocations: 204.4 kB / 0.5111 GB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.3106, allocations: 31.98 kB / 0.5111 GB, free: 9.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006965/0.3113, allocations: 127.9 kB / 0.5112 GB, free: 9.684 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/0.3115, allocations: 91.78 kB / 0.5113 GB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.482e-05/0.3116, allocations: 23.98 kB / 0.5113 GB, free: 9.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002873/0.3119, allocations: 267.1 kB / 0.5116 GB, free: 9.312 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3119, allocations: 0 / 0.5116 GB, free: 9.312 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006229/0.3125, allocations: 175.6 kB / 0.5118 GB, free: 9.141 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004277/0.3168, allocations: 2.455 MB / 0.5142 GB, free: 6.633 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007678/0.3245, allocations: 2.632 MB / 0.5167 GB, free: 3.984 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.3245, allocations: 4.312 kB / 0.5167 GB, free: 3.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00351/0.328, allocations: 1.152 MB / 0.5179 GB, free: 2.828 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009137/0.329, allocations: 135.7 kB / 0.518 GB, free: 2.699 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008607/0.3376, allocations: 4.875 MB / 0.5228 GB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.338, allocations: 0.9293 MB / 0.5237 GB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000376/0.3384, allocations: 203.3 kB / 0.5239 GB, free: 12.56 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3384, allocations: 0 / 0.5239 GB, free: 12.56 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.973/4.311, allocations: 12.11 MB / 0.5357 GB, free: 436 kB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)