Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.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.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",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.001709/0.001709, allocations: 109.2 kB / 17.06 MB, free: 5.973 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.001856/0.001856, allocations: 196.1 kB / 18.01 MB, free: 5.051 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.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1778/0.1778, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 59.89 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3135, allocations: 58.05 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.006106/0.3196, allocations: 6.262 MB / 0.5097 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.3218, allocations: 1.413 MB / 0.5111 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002834/0.3221, allocations: 22.56 kB / 0.5111 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004685/0.3226, allocations: 143.3 kB / 0.5113 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007726/0.3234, allocations: 413.7 kB / 0.5117 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004275/0.3238, allocations: 193.1 kB / 0.5118 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.3248, allocations: 1.086 MB / 0.5129 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004207/0.3253, allocations: 361.5 kB / 0.5133 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005945/0.3259, allocations: 462.3 kB / 0.5137 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007181/0.3266, allocations: 0.5264 MB / 0.5142 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.3267, allocations: 64.09 kB / 0.5143 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.3269, allocations: 65.28 kB / 0.5143 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000308/0.3272, allocations: 304.6 kB / 0.5146 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003329/0.3275, allocations: 361.6 kB / 0.515 GB, free: 356 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009728/0.3285, allocations: 0.8517 MB / 0.5158 GB, free: 24 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3285, allocations: 1.125 kB / 0.5158 GB, free: 24 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3285, allocations: 4.656 kB / 0.5158 GB, free: 20 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.3286, allocations: 0 / 0.5158 GB, free: 20 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002456/0.331, allocations: 1.021 MB / 0.5168 GB, free: 15.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.3311, allocations: 14.14 kB / 0.5168 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001692/0.3312, allocations: 103.3 kB / 0.5169 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.3314, allocations: 77.25 kB / 0.517 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/0.3327, allocations: 0.576 MB / 0.5175 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/0.333, allocations: 119 kB / 0.5177 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.3331, allocations: 64.23 kB / 0.5177 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.3347, allocations: 0.7723 MB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/0.3348, allocations: 1.344 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.976e-05/0.3348, allocations: 24.53 kB / 0.5185 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/0.335, allocations: 35.38 kB / 0.5185 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001704/0.3367, allocations: 0.7248 MB / 0.5192 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004617/0.3413, allocations: 2.602 MB / 0.5218 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.3431, allocations: 0.8017 MB / 0.5226 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007932/0.3439, allocations: 400 kB / 0.5229 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.004e-05/0.344, allocations: 10.05 kB / 0.523 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.3441, allocations: 37.81 kB / 0.523 GB, free: 11.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.425e-06/0.3441, allocations: 1.344 kB / 0.523 GB, free: 11.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.004505/0.3486, allocations: 2.153 MB / 0.5251 GB, free: 10.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.3487, allocations: 83.2 kB / 0.5252 GB, free: 10.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004986/0.3492, allocations: 402 kB / 0.5256 GB, free: 10.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/0.3492, allocations: 35.17 kB / 0.5256 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/0.3495, allocations: 291.9 kB / 0.5259 GB, free: 10.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.3497, allocations: 184.9 kB / 0.526 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.3498, allocations: 104.4 kB / 0.5261 GB, free: 10.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.35, allocations: 357.9 kB / 0.5265 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005608/0.3506, allocations: 271.8 kB / 0.5267 GB, free: 9.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006508/0.3513, allocations: 385.3 kB / 0.5271 GB, free: 9.402 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.3525, allocations: 0.6505 MB / 0.5278 GB, free: 9.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3525, allocations: 1.438 kB / 0.5278 GB, free: 9.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001659/0.3542, allocations: 0.8791 MB / 0.5286 GB, free: 8.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.3542, allocations: 6 kB / 0.5286 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3542, allocations: 4.188 kB / 0.5286 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002877/0.3545, allocations: 74.23 kB / 0.5287 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/0.3561, allocations: 311 kB / 0.529 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006563/0.3627, allocations: 6.524 MB / 0.5354 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005501/0.3633, allocations: 43.73 kB / 0.5354 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.758e-05/0.3633, allocations: 27.41 kB / 0.5354 GB, free: 2.406 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004123/0.3637, allocations: 245.1 kB / 0.5357 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.724e-05/0.3638, allocations: 49.95 kB / 0.5357 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001576/0.3654, allocations: 0.8268 MB / 0.5365 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.85e-06/0.3654, allocations: 6.625 kB / 0.5365 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.3654, allocations: 1.375 kB / 0.5365 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.3655, allocations: 3.984 kB / 0.5365 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/0.3684, allocations: 1.683 MB / 0.5382 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3684, allocations: 2.125 kB / 0.5382 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/0.3701, allocations: 327.5 kB / 0.5385 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002596/0.3704, allocations: 82.95 kB / 0.5386 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.542e-05/0.3704, allocations: 17.52 kB / 0.5386 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002527/0.3729, allocations: 3.162 MB / 0.5417 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.373, allocations: 1.188 kB / 0.5417 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0022/0.3752, allocations: 1.327 MB / 0.543 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.3753, allocations: 120.5 kB / 0.5431 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.762e-05/0.3754, allocations: 22.42 kB / 0.5431 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003705/0.3758, allocations: 39.02 kB / 0.5431 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.3759, allocations: 43.31 kB / 0.5432 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.744e-05/0.376, allocations: 16.34 kB / 0.5432 GB, free: 12.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003201/0.3763, allocations: 277.2 kB / 0.5435 GB, free: 11.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3763, allocations: 1 kB / 0.5435 GB, free: 11.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006822/0.377, allocations: 146.2 kB / 0.5436 GB, free: 11.94 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002514/0.3795, allocations: 1.891 MB / 0.5454 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.3823, allocations: 1.078 MB / 0.5465 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3823, allocations: 1.062 kB / 0.5465 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.3844, allocations: 0.7998 MB / 0.5473 GB, free: 9.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007978/0.3852, allocations: 146.8 kB / 0.5474 GB, free: 9.348 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009317/0.3945, allocations: 5.861 MB / 0.5531 GB, free: 3.973 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006512/0.3952, allocations: 0.9525 MB / 0.5541 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004327/0.3956, allocations: 124.7 kB / 0.5542 GB, free: 2.867 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003128/0.3959, allocations: 199.4 kB / 0.5544 GB, free: 2.672 MB / 414.1 MB Notification: Performance of SimCode: time 7.92e-07/0.396, allocations: 7.938 kB / 0.5544 GB, free: 2.664 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05928/0.4552, allocations: 13.01 MB / 0.5671 GB, free: 5.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.35, allocations: 5.703 kB / 0.5671 GB, free: 5.836 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)