Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001578/0.001577, allocations: 182 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 1.956/1.956, 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.001733/0.001733, allocations: 94.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2463/0.2463, allocations: 38.07 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004514/0.0004515, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1079, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4823/0.5903, allocations: 96.36 MB / 0.562 GB, free: 2.848 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002999/0.5906, allocations: 100.1 kB / 0.5621 GB, free: 2.793 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03376/0.6244, allocations: 7.697 MB / 0.5696 GB, free: 12.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.6245, allocations: 0 / 0.5696 GB, free: 12.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.102e-05/0.6245, allocations: 8 kB / 0.5696 GB, free: 12.17 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001769/0.6263, allocations: 0.6543 MB / 0.5703 GB, free: 11.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.6264, allocations: 8.031 kB / 0.5703 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.946e-05/0.6265, allocations: 68.31 kB / 0.5703 GB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.6266, allocations: 39.48 kB / 0.5704 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002693/0.6293, allocations: 0.7391 MB / 0.5711 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.6294, allocations: 18.38 kB / 0.5711 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.051e-05/0.6294, allocations: 27.5 kB / 0.5711 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008329/0.6303, allocations: 357.1 kB / 0.5715 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.6303, allocations: 0 / 0.5715 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.6304, allocations: 14.81 kB / 0.5715 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.6304, allocations: 8 kB / 0.5715 GB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006716/0.6311, allocations: 256 kB / 0.5718 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.6336, allocations: 1.435 MB / 0.5732 GB, free: 8.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003839/0.634, allocations: 161.1 kB / 0.5733 GB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.6341, allocations: 8.047 kB / 0.5733 GB, free: 8.676 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.6342, allocations: 34.56 kB / 0.5734 GB, free: 8.633 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 2.464e-06/0.6342, allocations: 0 / 0.5734 GB, free: 8.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.001796/0.636, allocations: 0.679 MB / 0.574 GB, free: 8.004 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.6361, allocations: 81.11 kB / 0.5741 GB, free: 7.906 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000436/0.6365, allocations: 271.1 kB / 0.5743 GB, free: 7.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.6366, allocations: 28.7 kB / 0.5744 GB, free: 7.648 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.6367, allocations: 259.9 kB / 0.5746 GB, free: 7.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.274e-05/0.6368, allocations: 58.44 kB / 0.5747 GB, free: 7.371 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-05/0.6368, allocations: 11.06 kB / 0.5747 GB, free: 7.367 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.637, allocations: 318.2 kB / 0.575 GB, free: 7.051 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.6372, allocations: 65.64 kB / 0.5751 GB, free: 7.004 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002931/0.6375, allocations: 166.1 kB / 0.5752 GB, free: 6.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.6378, allocations: 93.84 kB / 0.5753 GB, free: 6.758 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.6378, allocations: 0 / 0.5753 GB, free: 6.758 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007568/0.6386, allocations: 270.4 kB / 0.5756 GB, free: 6.539 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.6386, allocations: 8 kB / 0.5756 GB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.6387, allocations: 4 kB / 0.5756 GB, free: 6.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.6387, allocations: 7.953 kB / 0.5756 GB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005003/0.6392, allocations: 63.72 kB / 0.5756 GB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/0.6392, allocations: 7.938 kB / 0.5757 GB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.6396, allocations: 16.3 kB / 0.5757 GB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/0.6396, allocations: 15.94 kB / 0.5757 GB, free: 6.426 MB / 378.7 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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000306/0.6399, allocations: 167 kB / 0.5758 GB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.96e-05/0.64, allocations: 31.61 kB / 0.5759 GB, free: 6.242 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006481/0.6407, allocations: 227.4 kB / 0.5761 GB, free: 6.074 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.6407, allocations: 4 kB / 0.5761 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.6407, allocations: 0 / 0.5761 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.6408, allocations: 3.953 kB / 0.5761 GB, free: 6.066 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.642, allocations: 0.6315 MB / 0.5767 GB, free: 5.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.642, allocations: 4 kB / 0.5767 GB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003835/0.6424, allocations: 35.92 kB / 0.5767 GB, free: 5.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.6424, allocations: 0 / 0.5767 GB, free: 5.445 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.6424, allocations: 7.5 kB / 0.5768 GB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.6425, allocations: 3.953 kB / 0.5768 GB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.6425, allocations: 0 / 0.5768 GB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008883/0.6434, allocations: 460.7 kB / 0.5772 GB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.6435, allocations: 111.8 kB / 0.5773 GB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.6436, allocations: 7.984 kB / 0.5773 GB, free: 4.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.6438, allocations: 7.188 kB / 0.5773 GB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.6439, allocations: 10.86 kB / 0.5773 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.923e-05/0.6439, allocations: 8.062 kB / 0.5773 GB, free: 4.883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003035/0.6442, allocations: 215.1 kB / 0.5775 GB, free: 4.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6442, allocations: 0 / 0.5775 GB, free: 4.711 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004779/0.6447, allocations: 66.81 kB / 0.5776 GB, free: 4.652 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.001202/0.6459, allocations: 1.12 MB / 0.5787 GB, free: 3.578 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005185/0.6465, allocations: 189.8 kB / 0.5789 GB, free: 3.434 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.6465, allocations: 0.9375 kB / 0.5789 GB, free: 3.434 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000239/0.6467, allocations: 93.27 kB / 0.579 GB, free: 3.363 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005681/0.6473, allocations: 54.55 kB / 0.579 GB, free: 3.324 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004354/0.6517, allocations: 4.004 MB / 0.5829 GB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.6522, allocations: 0.8097 MB / 0.5837 GB, free: 14.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.6525, allocations: 110.6 kB / 0.5838 GB, free: 14.56 MB / 394.7 MB Notification: Performance of SimCode: time 8.72e-07/0.6525, allocations: 4 kB / 0.5838 GB, free: 14.55 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.477/3.13, allocations: 5.251 MB / 0.589 GB, free: 9.363 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)