Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001448/0.001448, allocations: 182.4 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.83/1.83, allocations: 194.3 MB / 208.4 MB, free: 6.719 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001701/0.0017, allocations: 124.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1699/0.1699, allocations: 37.9 MB / 336.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.637e-05/3.639e-05, allocations: 4 kB / 397.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.29, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1585/0.4486, allocations: 88.8 MB / 0.527 GB, free: 4.523 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/0.449, allocations: 91.81 kB / 0.5271 GB, free: 4.438 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3059/0.7548, allocations: 6.455 MB / 0.5334 GB, free: 86.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.7549, allocations: 1.469 kB / 0.5334 GB, free: 86.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.7549, allocations: 4.375 kB / 0.5334 GB, free: 86.97 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008053/0.7557, allocations: 0.533 MB / 0.5339 GB, free: 86.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.7558, allocations: 10.22 kB / 0.5339 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.943e-05/0.7559, allocations: 57.88 kB / 0.534 GB, free: 86.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.511e-05/0.7559, allocations: 30.86 kB / 0.534 GB, free: 86.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001529/0.7575, allocations: 0.6479 MB / 0.5347 GB, free: 86.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.7575, allocations: 19.94 kB / 0.5347 GB, free: 86.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.7577, allocations: 36.09 kB / 0.5347 GB, free: 86.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.7581, allocations: 287.6 kB / 0.535 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.7582, allocations: 1.5 kB / 0.535 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.7582, allocations: 8.719 kB / 0.535 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.7582, allocations: 5.719 kB / 0.535 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003204/0.7585, allocations: 190.8 kB / 0.5352 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.76, allocations: 1.281 MB / 0.5364 GB, free: 85.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/0.7603, allocations: 117.5 kB / 0.5365 GB, free: 85.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.832e-05/0.7603, allocations: 44.58 kB / 0.5366 GB, free: 85.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.7604, allocations: 11.77 kB / 0.5366 GB, free: 85.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.7604, allocations: 39.72 kB / 0.5366 GB, free: 85.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.7604, allocations: 1.219 kB / 0.5366 GB, free: 85.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008137/0.7612, allocations: 0.4997 MB / 0.5371 GB, free: 84.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.7613, allocations: 105.5 kB / 0.5372 GB, free: 84.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.7615, allocations: 212.8 kB / 0.5374 GB, free: 84.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.7615, allocations: 26.73 kB / 0.5375 GB, free: 84.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.7616, allocations: 202 kB / 0.5377 GB, free: 84.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.7617, allocations: 37.44 kB / 0.5377 GB, free: 84.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-06/0.7617, allocations: 5.125 kB / 0.5377 GB, free: 84.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.456e-05/0.7617, allocations: 331.3 kB / 0.538 GB, free: 83.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.308e-05/0.7618, allocations: 40.94 kB / 0.538 GB, free: 83.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.7619, allocations: 127.1 kB / 0.5382 GB, free: 83.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.762, allocations: 59.2 kB / 0.5382 GB, free: 83.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.7621, allocations: 1.031 kB / 0.5382 GB, free: 83.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004042/0.7625, allocations: 236.4 kB / 0.5385 GB, free: 83.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.7625, allocations: 6.828 kB / 0.5385 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.7625, allocations: 7.156 kB / 0.5385 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001331/0.7627, allocations: 27.97 kB / 0.5385 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.763, allocations: 66.62 kB / 0.5386 GB, free: 83.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/0.763, allocations: 10.53 kB / 0.5386 GB, free: 83.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.7632, allocations: 8.375 kB / 0.5386 GB, free: 83.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.7632, allocations: 9.969 kB / 0.5386 GB, free: 83.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.358e-05/0.7633, allocations: 124.4 kB / 0.5387 GB, free: 83.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.833e-05/0.7633, allocations: 25.3 kB / 0.5387 GB, free: 83.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002873/0.7636, allocations: 147.4 kB / 0.5389 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.7637, allocations: 1.438 kB / 0.5389 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.7637, allocations: 1.281 kB / 0.5389 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.7637, allocations: 3.062 kB / 0.5389 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003798/0.7641, allocations: 288.1 kB / 0.5391 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.7641, allocations: 1.344 kB / 0.5391 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001816/0.7643, allocations: 35.28 kB / 0.5392 GB, free: 83.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.912e-06/0.7643, allocations: 6.016 kB / 0.5392 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.7643, allocations: 6.703 kB / 0.5392 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.7643, allocations: 4.703 kB / 0.5392 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.7643, allocations: 4.781 kB / 0.5392 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000444/0.7648, allocations: 393.8 kB / 0.5396 GB, free: 82.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.958e-05/0.7648, allocations: 97.47 kB / 0.5397 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.565e-05/0.7649, allocations: 9.734 kB / 0.5397 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.765, allocations: 6.109 kB / 0.5397 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.14e-05/0.7651, allocations: 11.83 kB / 0.5397 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.7651, allocations: 9.375 kB / 0.5397 GB, free: 82.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001713/0.7653, allocations: 167.8 kB / 0.5399 GB, free: 82.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7653, allocations: 0 / 0.5399 GB, free: 82.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003873/0.7657, allocations: 47.77 kB / 0.5399 GB, free: 82.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000731/0.7664, allocations: 1.059 MB / 0.5409 GB, free: 81.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004007/0.7668, allocations: 209.4 kB / 0.5411 GB, free: 81.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7668, allocations: 4.062 kB / 0.5412 GB, free: 81.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.767, allocations: 50.88 kB / 0.5412 GB, free: 81.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.7674, allocations: 57.58 kB / 0.5413 GB, free: 81.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.7684, allocations: 0.4925 MB / 0.5417 GB, free: 81.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.7687, allocations: 0.7811 MB / 0.5425 GB, free: 80.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.7688, allocations: 33.8 kB / 0.5425 GB, free: 80.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.769, allocations: 88.14 kB / 0.5426 GB, free: 80.33 MB / 378.7 MB Notification: Performance of SimCode: time 4.2e-07/0.769, allocations: 0 / 0.5426 GB, free: 80.33 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01797/0.7869, allocations: 4.49 MB / 0.547 GB, free: 79.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/0.7872, allocations: 171.6 kB / 0.5472 GB, free: 79.37 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.943/2.73, allocations: 3.938 kB / 0.5472 GB, free: 79.36 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)