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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001234/0.001234, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.00113/0.00113, allocations: 200 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1768/0.1768, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 63.89 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.31, allocations: 58.05 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006178/0.3162, allocations: 6.488 MB / 0.51 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.3183, allocations: 1.324 MB / 0.5113 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003131/0.3187, allocations: 23.75 kB / 0.5113 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.319, allocations: 129.7 kB / 0.5114 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008808/0.3199, allocations: 423.1 kB / 0.5118 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.3204, allocations: 230.8 kB / 0.512 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001264/0.3217, allocations: 1.12 MB / 0.5131 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005218/0.3223, allocations: 398.9 kB / 0.5135 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007492/0.323, allocations: 494.5 kB / 0.514 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007915/0.3238, allocations: 0.5314 MB / 0.5145 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.3239, allocations: 68.88 kB / 0.5146 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001747/0.3241, allocations: 65.41 kB / 0.5146 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003785/0.3245, allocations: 332.7 kB / 0.5149 GB, free: 380 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000426/0.325, allocations: 408.7 kB / 0.5153 GB, free: 132 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001155/0.3261, allocations: 0.9158 MB / 0.5162 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3261, allocations: 4.5 kB / 0.5162 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3261, allocations: 3.938 kB / 0.5162 GB, free: 15.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.3262, allocations: 0.6562 kB / 0.5162 GB, free: 15.77 MB / 398.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.002424/0.3286, allocations: 1.174 MB / 0.5174 GB, free: 14.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.3287, allocations: 13.3 kB / 0.5174 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/0.3288, allocations: 110.5 kB / 0.5175 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.3291, allocations: 91.67 kB / 0.5176 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.3302, allocations: 0.604 MB / 0.5182 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.3303, allocations: 114.2 kB / 0.5183 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.3304, allocations: 68.16 kB / 0.5183 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.3321, allocations: 0.8683 MB / 0.5192 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.3321, allocations: 3.938 kB / 0.5192 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.892e-05/0.3322, allocations: 23.64 kB / 0.5192 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001159/0.3323, allocations: 41.16 kB / 0.5193 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.3336, allocations: 0.6193 MB / 0.5199 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00398/0.3376, allocations: 2.75 MB / 0.5225 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/0.3393, allocations: 0.8986 MB / 0.5234 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007635/0.3401, allocations: 322.9 kB / 0.5237 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.3402, allocations: 5.219 kB / 0.5237 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007577/0.3409, allocations: 352.6 kB / 0.5241 GB, free: 11.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.134e-06/0.3409, allocations: 0 / 0.5241 GB, free: 11.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004581/0.3455, allocations: 1.992 MB / 0.526 GB, free: 9.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.639e-05/0.3456, allocations: 111.9 kB / 0.5261 GB, free: 9.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006497/0.3463, allocations: 0.5124 MB / 0.5266 GB, free: 9.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.838e-05/0.3463, allocations: 34.73 kB / 0.5267 GB, free: 9.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003924/0.3467, allocations: 366.8 kB / 0.527 GB, free: 9.242 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.3469, allocations: 151.8 kB / 0.5272 GB, free: 9.125 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.3471, allocations: 124.9 kB / 0.5273 GB, free: 9.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.3473, allocations: 373 kB / 0.5276 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.3477, allocations: 222.8 kB / 0.5278 GB, free: 8.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004858/0.3482, allocations: 394 kB / 0.5282 GB, free: 8.371 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008937/0.3491, allocations: 0.6229 MB / 0.5288 GB, free: 7.949 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.3491, allocations: 5.375 kB / 0.5288 GB, free: 7.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001459/0.3505, allocations: 0.8977 MB / 0.5297 GB, free: 7.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.823e-05/0.3506, allocations: 49.06 kB / 0.5298 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.3506, allocations: 9.906 kB / 0.5298 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/0.351, allocations: 87.08 kB / 0.5298 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003909/0.3514, allocations: 107.9 kB / 0.5299 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.3542, allocations: 3.254 MB / 0.5331 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004454/0.3547, allocations: 30.7 kB / 0.5332 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.649e-05/0.3548, allocations: 43.75 kB / 0.5332 GB, free: 4.324 MB / 398.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.0004606/0.3552, allocations: 283.3 kB / 0.5335 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.132e-05/0.3553, allocations: 59.28 kB / 0.5335 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/0.3569, allocations: 0.7074 MB / 0.5342 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3569, allocations: 5.156 kB / 0.5342 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3569, allocations: 1.875 kB / 0.5342 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.3569, allocations: 5.109 kB / 0.5342 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/0.3595, allocations: 1.539 MB / 0.5357 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3595, allocations: 1.031 kB / 0.5357 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.3598, allocations: 64.59 kB / 0.5358 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002909/0.3601, allocations: 96.41 kB / 0.5359 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.59e-05/0.3601, allocations: 21 kB / 0.5359 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00276/0.3629, allocations: 3.245 MB / 0.5391 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3629, allocations: 1.094 kB / 0.5391 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002125/0.3651, allocations: 1.071 MB / 0.5401 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002958/0.3654, allocations: 173.5 kB / 0.5403 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.3655, allocations: 27.61 kB / 0.5403 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003897/0.3659, allocations: 39.77 kB / 0.5403 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.771e-05/0.366, allocations: 37.14 kB / 0.5404 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.366, allocations: 14.14 kB / 0.5404 GB, free: 14.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004485/0.3665, allocations: 356.7 kB / 0.5407 GB, free: 14.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3665, allocations: 0 / 0.5407 GB, free: 14.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007361/0.3672, allocations: 153.6 kB / 0.5409 GB, free: 14.1 MB / 414.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.002423/0.3697, allocations: 1.642 MB / 0.5425 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.3713, allocations: 0.9021 MB / 0.5434 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3713, allocations: 0 / 0.5434 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009442/0.3722, allocations: 0.4976 MB / 0.5439 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008699/0.3731, allocations: 157.9 kB / 0.544 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008272/0.3814, allocations: 6.102 MB / 0.55 GB, free: 7.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007039/0.3822, allocations: 0.9721 MB / 0.5509 GB, free: 6.281 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000345/0.3825, allocations: 104.9 kB / 0.551 GB, free: 6.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003055/0.3828, allocations: 223.4 kB / 0.5512 GB, free: 5.961 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3828, allocations: 3.938 kB / 0.5512 GB, free: 5.957 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06491/0.4477, allocations: 13.23 MB / 0.5641 GB, free: 8.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.78, allocations: 15.03 kB / 0.5642 GB, free: 8.902 MB / 430.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)