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.002296/0.002296, allocations: 182.2 kB / 15.76 MB, free: 6.34 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.117/2.117, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001149/0.001149, allocations: 90.91 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2708/0.2708, allocations: 38.04 MB / 356.5 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000628/0.0006281, allocations: 16 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1109, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4829/0.5939, allocations: 93.94 MB / 0.5597 GB, free: 5.266 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.5942, allocations: 93.95 kB / 0.5597 GB, free: 5.215 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02762/0.6218, allocations: 6.467 MB / 0.5661 GB, free: 15.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6219, allocations: 0 / 0.5661 GB, free: 15.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.353e-05/0.622, allocations: 12 kB / 0.5661 GB, free: 15.66 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.001514/0.6235, allocations: 0.5676 MB / 0.5666 GB, free: 15.06 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.6236, allocations: 12.03 kB / 0.5666 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000123/0.6237, allocations: 65.55 kB / 0.5667 GB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.6238, allocations: 27.62 kB / 0.5667 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002605/0.6264, allocations: 0.6727 MB / 0.5674 GB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.6265, allocations: 19.36 kB / 0.5674 GB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002138/0.6267, allocations: 30.56 kB / 0.5674 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.6274, allocations: 298 kB / 0.5677 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.6274, allocations: 0 / 0.5677 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.6275, allocations: 7.328 kB / 0.5677 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.6275, allocations: 12 kB / 0.5677 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004913/0.628, allocations: 185.5 kB / 0.5679 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.6304, allocations: 1.284 MB / 0.5692 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004172/0.6309, allocations: 125 kB / 0.5693 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.6309, allocations: 4 kB / 0.5693 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.6309, allocations: 33.31 kB / 0.5693 GB, free: 12.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 3.046e-06/0.6309, allocations: 0 / 0.5693 GB, free: 12.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.001428/0.6324, allocations: 0.5362 MB / 0.5698 GB, free: 11.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.732e-05/0.6325, allocations: 107.1 kB / 0.5699 GB, free: 11.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.6328, allocations: 213.3 kB / 0.5701 GB, free: 11.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.6329, allocations: 25.7 kB / 0.5702 GB, free: 11.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.6331, allocations: 250.9 kB / 0.5704 GB, free: 11.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.11e-05/0.6331, allocations: 42.39 kB / 0.5704 GB, free: 11.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.545e-05/0.6332, allocations: 3.562 kB / 0.5705 GB, free: 11.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.6333, allocations: 322 kB / 0.5708 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.6334, allocations: 37.67 kB / 0.5708 GB, free: 11.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.6336, allocations: 135 kB / 0.5709 GB, free: 10.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.6338, allocations: 58.91 kB / 0.571 GB, free: 10.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.6339, allocations: 0 / 0.571 GB, free: 10.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000656/0.6345, allocations: 223.9 kB / 0.5712 GB, free: 10.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.6346, allocations: 7.953 kB / 0.5712 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.6346, allocations: 7.984 kB / 0.5712 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001857/0.6348, allocations: 24.61 kB / 0.5712 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006833/0.6355, allocations: 64.28 kB / 0.5713 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.6355, allocations: 11.94 kB / 0.5713 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.6358, allocations: 6.562 kB / 0.5713 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.6358, allocations: 22.22 kB / 0.5713 GB, free: 10.52 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 () * Number of clocked 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 0.0002464/0.6361, allocations: 147.7 kB / 0.5715 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.515e-05/0.6362, allocations: 19.72 kB / 0.5715 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004719/0.6367, allocations: 159 kB / 0.5716 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.6367, allocations: 4 kB / 0.5716 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.6367, allocations: 4 kB / 0.5717 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.6367, allocations: 0 / 0.5717 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005732/0.6373, allocations: 291.8 kB / 0.5719 GB, free: 9.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.6373, allocations: 0 / 0.5719 GB, free: 9.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003475/0.6377, allocations: 35.91 kB / 0.572 GB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.6377, allocations: 0 / 0.572 GB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.6377, allocations: 0 / 0.572 GB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.605e-06/0.6377, allocations: 8.047 kB / 0.572 GB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6378, allocations: 3.938 kB / 0.572 GB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000644/0.6384, allocations: 392.7 kB / 0.5723 GB, free: 9.535 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.6386, allocations: 104.8 kB / 0.5724 GB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.814e-05/0.6386, allocations: 3.812 kB / 0.5725 GB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.6389, allocations: 4 kB / 0.5725 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.584e-05/0.6389, allocations: 19.17 kB / 0.5725 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.6389, allocations: 7.938 kB / 0.5725 GB, free: 9.387 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002383/0.6392, allocations: 166.9 kB / 0.5726 GB, free: 9.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6392, allocations: 0 / 0.5726 GB, free: 9.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005391/0.6397, allocations: 51.73 kB / 0.5727 GB, free: 9.203 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 () * Number of clocked 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.001011/0.6408, allocations: 1.072 MB / 0.5737 GB, free: 8.152 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005638/0.6414, allocations: 207.3 kB / 0.5739 GB, free: 7.961 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.6414, allocations: 128 / 0.5739 GB, free: 7.961 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.6416, allocations: 59.48 kB / 0.574 GB, free: 7.918 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006221/0.6422, allocations: 55.73 kB / 0.574 GB, free: 7.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004285/0.6465, allocations: 3.591 MB / 0.5776 GB, free: 4.324 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.647, allocations: 0.7773 MB / 0.5783 GB, free: 3.527 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.6472, allocations: 93.64 kB / 0.5784 GB, free: 3.492 MB / 378.7 MB Notification: Performance of SimCode: time 4.509e-06/0.6472, allocations: 0 / 0.5784 GB, free: 3.492 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.656/3.303, allocations: 4.669 MB / 0.583 GB, free: 14.88 MB / 394.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)