Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.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.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Rectifier",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.002097/0.002096, allocations: 181.3 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.144/2.144, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001087/0.001087, allocations: 90.89 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2643/0.2643, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000456/0.000456, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1075, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5063/0.6138, allocations: 110 MB / 0.5754 GB, free: 5.621 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00033/0.6142, allocations: 94.58 kB / 0.5755 GB, free: 5.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1069/0.7211, allocations: 23.33 MB / 0.5982 GB, free: 1.512 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7211, allocations: 0 / 0.5982 GB, free: 1.512 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.606e-05/0.7212, allocations: 16 kB / 0.5982 GB, free: 1.496 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.004717/0.726, allocations: 1.259 MB / 0.5995 GB, free: 252 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.726, allocations: 12.03 kB / 0.5995 GB, free: 240 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005391/0.7266, allocations: 144.4 kB / 0.5996 GB, free: 144 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001382/0.728, allocations: 144.2 kB / 0.5998 GB, free: 0 / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005767/0.7338, allocations: 1.273 MB / 0.601 GB, free: 14.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000383/0.7342, allocations: 180.3 kB / 0.6012 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003504/0.7346, allocations: 76.5 kB / 0.6013 GB, free: 14.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004015/0.7386, allocations: 1.369 MB / 0.6026 GB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.334e-05/0.7387, allocations: 0 / 0.6026 GB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001454/0.7389, allocations: 41.73 kB / 0.6026 GB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001425/0.739, allocations: 53.11 kB / 0.6027 GB, free: 13.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004241/0.7433, allocations: 1.301 MB / 0.604 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/0.7558, allocations: 4.952 MB / 0.6088 GB, free: 8.391 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004485/0.7604, allocations: 1.21 MB / 0.61 GB, free: 7.441 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/0.7605, allocations: 8.609 kB / 0.61 GB, free: 7.434 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.7606, allocations: 42.5 kB / 0.61 GB, free: 7.391 MB / 410.7 MB Notification: Performance of pre-optimization done (n=74): time 4.559e-06/0.7606, allocations: 0 / 0.61 GB, free: 7.391 MB / 410.7 MB Notification: Performance of matching and sorting (n=75): time 0.01126/0.7719, allocations: 3.454 MB / 0.6134 GB, free: 4.598 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.359e-05/0.772, allocations: 85.7 kB / 0.6135 GB, free: 4.496 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007903/0.7728, allocations: 403.6 kB / 0.6139 GB, free: 4.172 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002083/0.773, allocations: 36.39 kB / 0.6139 GB, free: 4.137 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003534/0.7734, allocations: 434.3 kB / 0.6143 GB, free: 3.785 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004647/0.7739, allocations: 261.4 kB / 0.6146 GB, free: 3.559 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.965e-05/0.774, allocations: 14.12 kB / 0.6146 GB, free: 3.555 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.7742, allocations: 348.9 kB / 0.6149 GB, free: 3.219 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001792/0.776, allocations: 0.5192 MB / 0.6154 GB, free: 2.852 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002085/0.7781, allocations: 0.7101 MB / 0.6161 GB, free: 2.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002091/0.7802, allocations: 0.5962 MB / 0.6167 GB, free: 1.828 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.7803, allocations: 3.953 kB / 0.6167 GB, free: 1.824 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.008691/0.789, allocations: 2.082 MB / 0.6187 GB, free: 148 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.7891, allocations: 8.562 kB / 0.6187 GB, free: 140 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007928/0.797, allocations: 1.86 MB / 0.6205 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003552/0.8006, allocations: 0.6911 MB / 0.6212 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.8019, allocations: 147.7 kB / 0.6214 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02217/0.8242, allocations: 7.244 MB / 0.6284 GB, free: 6.406 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.8256, allocations: 88.11 kB / 0.6285 GB, free: 6.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.8258, allocations: 28 kB / 0.6285 GB, free: 6.293 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (76): * Single equations (assignments): 72 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {4 16} Notification: Performance of prepare postOptimizeDAE: time 0.0009098/0.8268, allocations: 309.5 kB / 0.6288 GB, free: 5.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000274/0.827, allocations: 67.23 kB / 0.6289 GB, free: 5.914 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004755/0.8318, allocations: 1.321 MB / 0.6302 GB, free: 4.559 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.744e-05/0.8319, allocations: 16 kB / 0.6302 GB, free: 4.543 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/0.832, allocations: 11.94 kB / 0.6302 GB, free: 4.531 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.832, allocations: 4 kB / 0.6302 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008327/0.8403, allocations: 2.464 MB / 0.6326 GB, free: 1.973 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.8404, allocations: 0 / 0.6326 GB, free: 1.973 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006097/0.8465, allocations: 0.6399 MB / 0.6333 GB, free: 1.332 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.8467, allocations: 24.84 kB / 0.6333 GB, free: 1.305 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001789/0.8469, allocations: 23.97 kB / 0.6333 GB, free: 1.281 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001489/0.8484, allocations: 1.389 MB / 0.6347 GB, free: 15.76 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.8484, allocations: 3.953 kB / 0.6347 GB, free: 15.76 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006474/0.8549, allocations: 2.128 MB / 0.6367 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/0.8552, allocations: 128.3 kB / 0.6369 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.8554, allocations: 16 kB / 0.6369 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.8565, allocations: 79.91 kB / 0.637 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002758/0.8568, allocations: 64.41 kB / 0.637 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-05/0.8569, allocations: 19.94 kB / 0.637 GB, free: 13.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006032/0.8575, allocations: 318.9 kB / 0.6373 GB, free: 12.92 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.8575, allocations: 0 / 0.6373 GB, free: 12.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001453/0.859, allocations: 247.9 kB / 0.6376 GB, free: 12.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],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 (66): * Single equations (assignments): 62 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007255/0.8662, allocations: 2.995 MB / 0.6405 GB, free: 9.605 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005427/0.8717, allocations: 1.615 MB / 0.6421 GB, free: 7.961 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.8718, allocations: 0 / 0.6421 GB, free: 7.961 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005651/0.8774, allocations: 1.135 MB / 0.6432 GB, free: 6.816 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.8788, allocations: 141.8 kB / 0.6433 GB, free: 6.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02315/0.9019, allocations: 10.58 MB / 0.6537 GB, free: 11.89 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/0.9031, allocations: 1.083 MB / 0.6547 GB, free: 10.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008878/0.904, allocations: 291.3 kB / 0.655 GB, free: 10.49 MB / 458.7 MB Notification: Performance of SimCode: time 1.182e-06/0.904, allocations: 0 / 0.655 GB, free: 10.49 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.382/4.286, allocations: 23.63 MB / 0.6781 GB, free: 2.828 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Rectifier.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1)