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.002331/0.002331, allocations: 184.9 kB / 13.19 MB, free: 2.125 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.154/2.154, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001119/0.001119, allocations: 89.27 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2716/0.2716, allocations: 37.96 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.751e-05/3.755e-05, allocations: 8 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 56.3 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4854/0.5892, allocations: 96.28 MB / 0.5561 GB, free: 7.305 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.5895, allocations: 87.95 kB / 0.5562 GB, free: 7.219 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.038/0.6275, allocations: 7.69 MB / 0.5637 GB, free: 15.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.18e-06/0.6276, allocations: 0 / 0.5637 GB, free: 15.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.357e-05/0.6276, allocations: 11.94 kB / 0.5637 GB, free: 15.45 MB / 410.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.001408/0.629, allocations: 0.5862 MB / 0.5643 GB, free: 14.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.6291, allocations: 12.03 kB / 0.5643 GB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001188/0.6292, allocations: 62.89 kB / 0.5644 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.6294, allocations: 39.48 kB / 0.5644 GB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002931/0.6323, allocations: 0.7206 MB / 0.5651 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.984e-05/0.6324, allocations: 24.56 kB / 0.5652 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.8e-05/0.6325, allocations: 24 kB / 0.5652 GB, free: 13.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008653/0.6334, allocations: 348.8 kB / 0.5655 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.6334, allocations: 0 / 0.5655 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.812e-05/0.6335, allocations: 16 kB / 0.5655 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.6335, allocations: 11.94 kB / 0.5655 GB, free: 13.49 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007049/0.6342, allocations: 254 kB / 0.5658 GB, free: 13.24 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00281/0.637, allocations: 1.442 MB / 0.5672 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004241/0.6375, allocations: 165 kB / 0.5673 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.6377, allocations: 73.75 kB / 0.5674 GB, free: 11.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.6378, allocations: 4 kB / 0.5674 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.6378, allocations: 42.5 kB / 0.5675 GB, free: 11.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 3.056e-06/0.6378, allocations: 0 / 0.5675 GB, free: 11.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=16): time 0.001674/0.6395, allocations: 0.6108 MB / 0.5681 GB, free: 10.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.6396, allocations: 81.11 kB / 0.5681 GB, free: 10.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004605/0.6401, allocations: 258.7 kB / 0.5684 GB, free: 10.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.6401, allocations: 37.69 kB / 0.5684 GB, free: 10.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.6403, allocations: 262.1 kB / 0.5687 GB, free: 10.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.818e-05/0.6404, allocations: 55.19 kB / 0.5687 GB, free: 10.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.927e-05/0.6405, allocations: 4 kB / 0.5687 GB, free: 10.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.6406, allocations: 326.9 kB / 0.569 GB, free: 9.684 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.6408, allocations: 63.97 kB / 0.5691 GB, free: 9.621 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.6411, allocations: 161.3 kB / 0.5693 GB, free: 9.418 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.6414, allocations: 99.81 kB / 0.5693 GB, free: 9.324 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.6414, allocations: 4 kB / 0.5694 GB, free: 9.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006599/0.6421, allocations: 261.5 kB / 0.5696 GB, free: 9.059 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.6421, allocations: 11.91 kB / 0.5696 GB, free: 9.047 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.6421, allocations: 7.953 kB / 0.5696 GB, free: 9.039 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.6422, allocations: 4 kB / 0.5696 GB, free: 9.035 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004609/0.6426, allocations: 59.89 kB / 0.5697 GB, free: 8.977 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.6427, allocations: 7.938 kB / 0.5697 GB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.643, allocations: 12 kB / 0.5697 GB, free: 8.957 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.643, allocations: 19.98 kB / 0.5697 GB, free: 8.938 MB / 410.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 () * 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.0001199/0.6432, allocations: 118.7 kB / 0.5698 GB, free: 8.816 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.409e-05/0.6433, allocations: 35.66 kB / 0.5699 GB, free: 8.781 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006058/0.6439, allocations: 219.7 kB / 0.5701 GB, free: 8.559 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.6439, allocations: 7.984 kB / 0.5701 GB, free: 8.551 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.6439, allocations: 0 / 0.5701 GB, free: 8.551 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.6439, allocations: 3.953 kB / 0.5701 GB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.6451, allocations: 0.6162 MB / 0.5707 GB, free: 7.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.6452, allocations: 4 kB / 0.5707 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003612/0.6455, allocations: 47.89 kB / 0.5707 GB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.6456, allocations: 0 / 0.5707 GB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.6456, allocations: 11.94 kB / 0.5707 GB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.6456, allocations: 0 / 0.5707 GB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.6456, allocations: 0 / 0.5707 GB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008489/0.6465, allocations: 452.5 kB / 0.5712 GB, free: 7.332 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.6466, allocations: 116.6 kB / 0.5713 GB, free: 7.199 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.622e-05/0.6467, allocations: 4 kB / 0.5713 GB, free: 7.195 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.647, allocations: 11.98 kB / 0.5713 GB, free: 7.184 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.984e-05/0.647, allocations: 11.98 kB / 0.5713 GB, free: 7.172 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.6471, allocations: 8 kB / 0.5713 GB, free: 7.164 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003122/0.6474, allocations: 202.2 kB / 0.5715 GB, free: 6.969 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6474, allocations: 0 / 0.5715 GB, free: 6.969 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004789/0.6479, allocations: 76.3 kB / 0.5716 GB, free: 6.895 MB / 410.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 () * 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.001235/0.6492, allocations: 1.123 MB / 0.5727 GB, free: 5.734 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004984/0.6497, allocations: 179.7 kB / 0.5729 GB, free: 5.559 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.6497, allocations: 0 / 0.5729 GB, free: 5.559 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002301/0.6499, allocations: 87.91 kB / 0.5729 GB, free: 5.473 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/0.6505, allocations: 65.69 kB / 0.573 GB, free: 5.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.6522, allocations: 0.5895 MB / 0.5736 GB, free: 4.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005143/0.6527, allocations: 0.8145 MB / 0.5744 GB, free: 3.926 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.653, allocations: 111.4 kB / 0.5745 GB, free: 3.816 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/0.653, allocations: 0 / 0.5745 GB, free: 3.816 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.536/3.189, allocations: 5.243 MB / 0.5796 GB, free: 14.57 MB / 426.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)