Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.001394/0.001394, allocations: 185.7 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.112/2.112, allocations: 205.3 MB / 213.7 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001128/0.001128, allocations: 86.69 kB / 261.8 MB, free: 1.613 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3303/0.3303, allocations: 37.99 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.769e-05/2.782e-05, allocations: 4 kB / 409.9 MB, free: 35.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 56.33 MB / 466.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4907/0.5995, allocations: 93.17 MB / 0.5463 GB, free: 10.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/0.5998, allocations: 89.02 kB / 0.5464 GB, free: 10.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02599/0.6258, allocations: 6.416 MB / 0.5527 GB, free: 8.148 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.6259, allocations: 0 / 0.5527 GB, free: 8.148 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.472e-05/0.6259, allocations: 7.844 kB / 0.5527 GB, free: 8.145 MB / 362.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.0009914/0.6269, allocations: 0.5271 MB / 0.5532 GB, free: 7.688 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.627, allocations: 15.59 kB / 0.5532 GB, free: 7.684 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.741e-05/0.6271, allocations: 39.02 kB / 0.5533 GB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.6292, allocations: 0.65 MB / 0.5539 GB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.6292, allocations: 7.781 kB / 0.5539 GB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001922/0.6294, allocations: 23.38 kB / 0.5539 GB, free: 7.273 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004609/0.6299, allocations: 162.9 kB / 0.5541 GB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004661/0.6304, allocations: 254 kB / 0.5543 GB, free: 7.113 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.6304, allocations: 3.953 kB / 0.5543 GB, free: 7.109 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.6304, allocations: 7.844 kB / 0.5543 GB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.6304, allocations: 3.812 kB / 0.5543 GB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.6322, allocations: 1.231 MB / 0.5555 GB, free: 6.082 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.6326, allocations: 120.5 kB / 0.5557 GB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.431e-05/0.6327, allocations: 45.48 kB / 0.5557 GB, free: 5.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.6327, allocations: 4.594 kB / 0.5557 GB, free: 5.969 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.6327, allocations: 34.5 kB / 0.5557 GB, free: 5.926 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 2.344e-06/0.6327, allocations: 0 / 0.5557 GB, free: 5.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0009712/0.6337, allocations: 0.4921 MB / 0.5562 GB, free: 5.539 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.6338, allocations: 102.8 kB / 0.5563 GB, free: 5.414 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.634, allocations: 205.2 kB / 0.5565 GB, free: 5.297 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.6341, allocations: 29.64 kB / 0.5565 GB, free: 5.262 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.6342, allocations: 249.7 kB / 0.5568 GB, free: 5.059 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.321e-05/0.6342, allocations: 34.45 kB / 0.5568 GB, free: 5.031 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.6342, allocations: 0 / 0.5568 GB, free: 5.031 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.908e-05/0.6343, allocations: 322.6 kB / 0.5571 GB, free: 4.715 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.246e-05/0.6344, allocations: 38.67 kB / 0.5572 GB, free: 4.711 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.6346, allocations: 120.1 kB / 0.5573 GB, free: 4.598 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.6347, allocations: 58.8 kB / 0.5573 GB, free: 4.582 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.6347, allocations: 0 / 0.5573 GB, free: 4.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004847/0.6352, allocations: 193.9 kB / 0.5575 GB, free: 4.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.6352, allocations: 3.938 kB / 0.5575 GB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.6353, allocations: 4.219 kB / 0.5575 GB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001574/0.6354, allocations: 31.78 kB / 0.5576 GB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006269/0.6361, allocations: 64.94 kB / 0.5576 GB, free: 4.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.6361, allocations: 7.719 kB / 0.5576 GB, free: 4.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00022/0.6363, allocations: 7.75 kB / 0.5576 GB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.6363, allocations: 14.55 kB / 0.5576 GB, free: 4.457 MB / 362.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 8.286e-05/0.6364, allocations: 104.9 kB / 0.5577 GB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002777/0.6367, allocations: 125.8 kB / 0.5579 GB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-05/0.6368, allocations: 30.36 kB / 0.5579 GB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003333/0.6372, allocations: 141.2 kB / 0.558 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.6372, allocations: 0 / 0.558 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.6372, allocations: 3.844 kB / 0.558 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.6372, allocations: 0 / 0.558 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003886/0.6376, allocations: 246.2 kB / 0.5583 GB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.6376, allocations: 3.812 kB / 0.5583 GB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.6379, allocations: 30.95 kB / 0.5583 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.638, allocations: 4 kB / 0.5583 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.638, allocations: 7.781 kB / 0.5583 GB, free: 4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.638, allocations: 3.953 kB / 0.5583 GB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.638, allocations: 0 / 0.5583 GB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004314/0.6385, allocations: 383.1 kB / 0.5587 GB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.6385, allocations: 100.3 kB / 0.5588 GB, free: 3.609 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.571e-05/0.6386, allocations: 10.5 kB / 0.5588 GB, free: 3.605 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.6388, allocations: 3.984 kB / 0.5588 GB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.772e-05/0.6389, allocations: 3.875 kB / 0.5588 GB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.6389, allocations: 7.797 kB / 0.5588 GB, free: 3.598 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001555/0.6391, allocations: 158.5 kB / 0.5589 GB, free: 3.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6391, allocations: 7.875 kB / 0.559 GB, free: 3.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004824/0.6396, allocations: 45.5 kB / 0.559 GB, free: 3.504 MB / 362.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.0006292/0.6402, allocations: 1.049 MB / 0.56 GB, free: 2.566 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003935/0.6406, allocations: 201.1 kB / 0.5602 GB, free: 2.441 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.6406, allocations: 4 kB / 0.5602 GB, free: 2.438 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.6408, allocations: 48.81 kB / 0.5603 GB, free: 2.434 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005529/0.6413, allocations: 49.02 kB / 0.5603 GB, free: 2.422 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.6427, allocations: 0.5111 MB / 0.5608 GB, free: 2.047 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.6429, allocations: 0.7794 MB / 0.5616 GB, free: 1.305 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.6431, allocations: 90.78 kB / 0.5617 GB, free: 1.289 MB / 362.7 MB Notification: Performance of SimCode: time 8.71e-07/0.6431, allocations: 0 / 0.5617 GB, free: 1.289 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.708/3.351, allocations: 4.607 MB / 0.5662 GB, free: 13.33 MB / 378.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)