Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.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.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_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.001195/0.001195, allocations: 110.3 kB / 17.06 MB, free: 5.82 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.00121/0.00121, allocations: 195.9 kB / 18 MB, free: 4.965 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.178/0.178, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 59.89 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3259, allocations: 58.05 MB / 0.5036 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.006205/0.3322, allocations: 6.339 MB / 0.5098 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.3344, allocations: 1.442 MB / 0.5112 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002965/0.3347, allocations: 22.38 kB / 0.5112 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004996/0.3352, allocations: 147.7 kB / 0.5114 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007982/0.3361, allocations: 426 kB / 0.5118 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004644/0.3366, allocations: 214.3 kB / 0.512 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.3376, allocations: 1.118 MB / 0.5131 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004279/0.3381, allocations: 363 kB / 0.5134 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006026/0.3387, allocations: 473.5 kB / 0.5139 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008062/0.3395, allocations: 0.5313 MB / 0.5144 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.3396, allocations: 69.34 kB / 0.5145 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.3398, allocations: 65.78 kB / 0.5145 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000331/0.3401, allocations: 317.4 kB / 0.5148 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003565/0.3405, allocations: 376.2 kB / 0.5152 GB, free: 348 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009398/0.3414, allocations: 0.8745 MB / 0.516 GB, free: 12 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3415, allocations: 1.344 kB / 0.516 GB, free: 12 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3415, allocations: 0 / 0.516 GB, free: 12 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.3415, allocations: 0 / 0.516 GB, free: 12 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002229/0.3437, allocations: 1.041 MB / 0.5171 GB, free: 15.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.3438, allocations: 14.47 kB / 0.5171 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001431/0.3439, allocations: 104.4 kB / 0.5172 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.3441, allocations: 81.97 kB / 0.5173 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.3452, allocations: 0.5888 MB / 0.5178 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.3454, allocations: 125.2 kB / 0.5179 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.045e-05/0.3455, allocations: 56.53 kB / 0.518 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.3469, allocations: 0.7843 MB / 0.5188 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.3469, allocations: 1.094 kB / 0.5188 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-05/0.347, allocations: 24.58 kB / 0.5188 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001074/0.3471, allocations: 35.39 kB / 0.5188 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.3485, allocations: 0.6924 MB / 0.5195 GB, free: 14.11 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004347/0.3528, allocations: 2.702 MB / 0.5221 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001798/0.3546, allocations: 0.8763 MB / 0.523 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000585/0.3552, allocations: 326.1 kB / 0.5233 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.615e-05/0.3553, allocations: 8.125 kB / 0.5233 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.227e-05/0.3553, allocations: 45.75 kB / 0.5234 GB, free: 11.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.144e-06/0.3553, allocations: 0 / 0.5234 GB, free: 11.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.00416/0.3595, allocations: 1.942 MB / 0.5253 GB, free: 10.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.3596, allocations: 93.84 kB / 0.5253 GB, free: 10.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005364/0.3601, allocations: 427.5 kB / 0.5258 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.3602, allocations: 35.7 kB / 0.5258 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.3604, allocations: 315.3 kB / 0.5261 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.3606, allocations: 147.9 kB / 0.5262 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.3607, allocations: 89.28 kB / 0.5263 GB, free: 9.977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3609, allocations: 357.5 kB / 0.5267 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005026/0.3614, allocations: 240 kB / 0.5269 GB, free: 9.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005777/0.362, allocations: 350.9 kB / 0.5272 GB, free: 9.367 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.3631, allocations: 0.5716 MB / 0.5278 GB, free: 9.062 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3631, allocations: 5.344 kB / 0.5278 GB, free: 9.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001465/0.3646, allocations: 0.7882 MB / 0.5285 GB, free: 8.684 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3646, allocations: 6.844 kB / 0.5286 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3646, allocations: 8.922 kB / 0.5286 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002683/0.3649, allocations: 72.73 kB / 0.5286 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.3664, allocations: 292.6 kB / 0.5289 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006513/0.3729, allocations: 6.509 MB / 0.5353 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000519/0.3734, allocations: 37.91 kB / 0.5353 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/0.3735, allocations: 33.92 kB / 0.5353 GB, free: 2.309 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * 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.0003916/0.3739, allocations: 230.7 kB / 0.5356 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.373e-05/0.374, allocations: 50.3 kB / 0.5356 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.3754, allocations: 0.7341 MB / 0.5363 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3754, allocations: 4.344 kB / 0.5363 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.3754, allocations: 1.188 kB / 0.5363 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3755, allocations: 8.922 kB / 0.5363 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00257/0.378, allocations: 1.492 MB / 0.5378 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/0.3781, allocations: 2 kB / 0.5378 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.3797, allocations: 294.8 kB / 0.5381 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002662/0.3799, allocations: 98.17 kB / 0.5382 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.38, allocations: 11.97 kB / 0.5382 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002658/0.3827, allocations: 3.165 MB / 0.5413 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3827, allocations: 1.531 kB / 0.5413 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/0.3846, allocations: 1.13 MB / 0.5424 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.3848, allocations: 122.5 kB / 0.5425 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/0.3849, allocations: 8.562 kB / 0.5425 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003282/0.3852, allocations: 36.05 kB / 0.5425 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.3854, allocations: 40.17 kB / 0.5426 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.3854, allocations: 12.25 kB / 0.5426 GB, free: 12.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003444/0.3857, allocations: 293.7 kB / 0.5429 GB, free: 12.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3858, allocations: 1.125 kB / 0.5429 GB, free: 12.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006785/0.3864, allocations: 137 kB / 0.543 GB, free: 12.13 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 36 * 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.002228/0.3887, allocations: 1.665 MB / 0.5446 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002678/0.3914, allocations: 1.002 MB / 0.5456 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3914, allocations: 3.938 kB / 0.5456 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002007/0.3934, allocations: 0.7212 MB / 0.5463 GB, free: 9.832 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009485/0.3944, allocations: 146.5 kB / 0.5465 GB, free: 9.758 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008453/0.4028, allocations: 5.513 MB / 0.5518 GB, free: 5.297 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006341/0.4035, allocations: 0.9409 MB / 0.5528 GB, free: 4.332 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003458/0.4038, allocations: 100.5 kB / 0.5528 GB, free: 4.234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003034/0.4042, allocations: 203.4 kB / 0.553 GB, free: 4.039 MB / 414.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4042, allocations: 0 / 0.553 GB, free: 4.039 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0678/0.472, allocations: 12.85 MB / 0.5656 GB, free: 7.367 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.19, allocations: 12 kB / 0.5656 GB, free: 7.355 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)