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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.0008319/0.000832, allocations: 83.84 kB / 16.31 MB, free: 6.449 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.0009/0.0009002, allocations: 179.3 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 205.4 MB / 223.4 MB, free: 5.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3039/0.3039, allocations: 38.06 MB / 309.7 MB, free: 8.871 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005201/0.0005202, allocations: 23.94 kB / 376.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1096, allocations: 56.31 MB / 432.9 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.007098/0.1168, allocations: 6.567 MB / 439.5 MB, free: 160 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003013/0.1198, allocations: 1.731 MB / 441.2 MB, free: 14.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005608/0.1204, allocations: 39.75 kB / 441.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005274/0.1209, allocations: 154.9 kB / 441.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001165/0.1221, allocations: 465.7 kB / 441.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005904/0.1227, allocations: 219.6 kB / 442.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001282/0.124, allocations: 1.309 MB / 443.4 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003815/0.1244, allocations: 263.5 kB / 443.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000661/0.1251, allocations: 382.3 kB / 444 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008016/0.1259, allocations: 0.5179 MB / 444.6 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.966e-05/0.126, allocations: 32 kB / 444.6 MB, free: 11.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.1262, allocations: 32 kB / 444.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002884/0.1265, allocations: 279.2 kB / 444.9 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002186/0.1267, allocations: 157.4 kB / 445 MB, free: 10.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005509/0.1272, allocations: 0.6662 MB / 445.7 MB, free: 9.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1273, allocations: 0 / 445.7 MB, free: 9.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1273, allocations: 0 / 445.7 MB, free: 9.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.759e-05/0.1273, allocations: 0 / 445.7 MB, free: 9.914 MB / 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.001755/0.1291, allocations: 0.9217 MB / 446.6 MB, free: 8.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1291, allocations: 8.031 kB / 446.6 MB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001576/0.1293, allocations: 102.5 kB / 446.7 MB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.1294, allocations: 79.05 kB / 446.8 MB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009753/0.1304, allocations: 0.5369 MB / 447.4 MB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.1306, allocations: 116.7 kB / 447.5 MB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.266e-05/0.1307, allocations: 52 kB / 447.5 MB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.132, allocations: 0.8083 MB / 448.3 MB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1321, allocations: 0 / 448.3 MB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.089e-05/0.1321, allocations: 23.94 kB / 448.4 MB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/0.1322, allocations: 36.97 kB / 448.4 MB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.1337, allocations: 0.726 MB / 449.1 MB, free: 6.359 MB / 382.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.003968/0.1376, allocations: 2.747 MB / 451.9 MB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/0.1394, allocations: 0.9363 MB / 452.8 MB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005218/0.1399, allocations: 349.4 kB / 453.1 MB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.113e-05/0.1399, allocations: 4 kB / 453.1 MB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.14, allocations: 42.52 kB / 453.2 MB, free: 2.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 3.427e-06/0.14, allocations: 3.984 kB / 453.2 MB, free: 2.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.1889/0.3289, allocations: 2.015 MB / 455.2 MB, free: 51.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.329, allocations: 80.48 kB / 455.3 MB, free: 51.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004875/0.3295, allocations: 427.1 kB / 455.7 MB, free: 51.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.703e-05/0.3296, allocations: 33.95 kB / 455.7 MB, free: 51.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.3297, allocations: 306.1 kB / 456 MB, free: 51.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.881e-05/0.3298, allocations: 143.1 kB / 456.2 MB, free: 51.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.3299, allocations: 11.19 kB / 456.2 MB, free: 51.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.354e-05/0.3299, allocations: 365 kB / 456.5 MB, free: 51.15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004391/0.3304, allocations: 250.1 kB / 456.8 MB, free: 51.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004224/0.3308, allocations: 370.6 kB / 457.1 MB, free: 51.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004165/0.3312, allocations: 286.4 kB / 457.4 MB, free: 51.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3313, allocations: 0.8438 kB / 457.4 MB, free: 51.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001123/0.3324, allocations: 0.8129 MB / 458.2 MB, free: 50.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.3324, allocations: 10.7 kB / 458.2 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3324, allocations: 3.281 kB / 458.3 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002242/0.3327, allocations: 75.36 kB / 458.3 MB, free: 50.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.3339, allocations: 378.4 kB / 458.7 MB, free: 50.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003964/0.3379, allocations: 6.153 MB / 464.8 MB, free: 45.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/0.3383, allocations: 51.06 kB / 464.9 MB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.3383, allocations: 16.31 kB / 464.9 MB, free: 45.59 MB / 382.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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002437/0.3386, allocations: 238.6 kB / 465.1 MB, free: 45.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.41e-05/0.3386, allocations: 45.78 kB / 465.2 MB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001095/0.3397, allocations: 0.7673 MB / 466 MB, free: 45.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.3397, allocations: 3.25 kB / 466 MB, free: 45.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.155e-06/0.3398, allocations: 3.281 kB / 466 MB, free: 45.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.3398, allocations: 4 kB / 466 MB, free: 45.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001954/0.3417, allocations: 1.536 MB / 467.5 MB, free: 44.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3417, allocations: 64 / 467.5 MB, free: 44.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/0.3431, allocations: 411 kB / 467.9 MB, free: 44.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002185/0.3433, allocations: 90.81 kB / 468 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.3434, allocations: 9.469 kB / 468 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.345, allocations: 2.884 MB / 470.9 MB, free: 42.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.345, allocations: 0 / 470.9 MB, free: 42.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.3466, allocations: 1.169 MB / 472.1 MB, free: 41.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.52e-05/0.3467, allocations: 120.1 kB / 472.2 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.335e-05/0.3467, allocations: 13.73 kB / 472.2 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.347, allocations: 43.39 kB / 472.2 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.392e-05/0.3471, allocations: 33.34 kB / 472.3 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.3472, allocations: 11.94 kB / 472.3 MB, free: 41.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002446/0.3474, allocations: 294.5 kB / 472.6 MB, free: 41.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3474, allocations: 0 / 472.6 MB, free: 41.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006062/0.348, allocations: 135.9 kB / 472.7 MB, free: 41.57 MB / 382.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 (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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001777/0.3498, allocations: 1.721 MB / 474.4 MB, free: 40.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.352, allocations: 1.11 MB / 475.5 MB, free: 40.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.352, allocations: 0 / 475.5 MB, free: 40.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.3536, allocations: 0.8273 MB / 476.4 MB, free: 39.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007376/0.3543, allocations: 135.8 kB / 476.5 MB, free: 39.67 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004927/0.3592, allocations: 4.014 MB / 480.5 MB, free: 37.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.3596, allocations: 0.9493 MB / 481.4 MB, free: 36.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003087/0.3599, allocations: 100.5 kB / 481.5 MB, free: 36.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002346/0.3602, allocations: 198.6 kB / 481.7 MB, free: 36.73 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3602, allocations: 2.844 kB / 481.7 MB, free: 36.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/0.3866, allocations: 12.05 MB / 493.8 MB, free: 35.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001249/0.3868, allocations: 216.4 kB / 494 MB, free: 35.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.292, allocations: 1.188 kB / 494 MB, free: 35.54 MB / 382.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/linux/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) Environment - environmentSimulation: