Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.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.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.001487/0.001487, allocations: 181.4 kB / 15.76 MB, free: 6.344 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.993/1.993, 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.001159/0.001159, allocations: 106.8 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.2626/0.2626, allocations: 38.05 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007051/0.0007054, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1118, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4982/0.61, allocations: 100.9 MB / 0.5665 GB, free: 14.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003221/0.6104, allocations: 87.27 kB / 0.5665 GB, free: 14.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05727/0.6677, allocations: 12.58 MB / 0.5788 GB, free: 3.645 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.6677, allocations: 4 kB / 0.5788 GB, free: 3.641 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.105e-05/0.6678, allocations: 12 kB / 0.5788 GB, free: 3.629 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002162/0.67, allocations: 0.7226 MB / 0.5795 GB, free: 2.883 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.67, allocations: 8.031 kB / 0.5796 GB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002281/0.6703, allocations: 87.08 kB / 0.5796 GB, free: 2.809 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.6713, allocations: 95.28 kB / 0.5797 GB, free: 2.715 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003639/0.675, allocations: 0.8589 MB / 0.5806 GB, free: 1.941 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.675, allocations: 34.62 kB / 0.5806 GB, free: 1.922 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.6752, allocations: 49.81 kB / 0.5806 GB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.6766, allocations: 0.6199 MB / 0.5813 GB, free: 1.352 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/0.6767, allocations: 0 / 0.5813 GB, free: 1.352 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.726e-05/0.6767, allocations: 18.31 kB / 0.5813 GB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.409e-05/0.6768, allocations: 28.98 kB / 0.5813 GB, free: 1.316 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.678, allocations: 454.6 kB / 0.5817 GB, free: 1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005294/0.6833, allocations: 2.927 MB / 0.5846 GB, free: 14.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005352/0.6839, allocations: 203.4 kB / 0.5848 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.282e-05/0.684, allocations: 11.88 kB / 0.5848 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.684, allocations: 34.5 kB / 0.5848 GB, free: 14.01 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 2.795e-06/0.6841, allocations: 0 / 0.5848 GB, free: 14.01 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.002662/0.6867, allocations: 1.044 MB / 0.5858 GB, free: 13.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/0.6868, allocations: 81.3 kB / 0.5859 GB, free: 12.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004851/0.6873, allocations: 289.5 kB / 0.5862 GB, free: 12.74 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.6874, allocations: 29.14 kB / 0.5862 GB, free: 12.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.6877, allocations: 342 kB / 0.5866 GB, free: 12.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.6878, allocations: 94.86 kB / 0.5866 GB, free: 12.33 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.496e-05/0.6878, allocations: 6.25 kB / 0.5867 GB, free: 12.33 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.688, allocations: 335.2 kB / 0.587 GB, free: 12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003816/0.6884, allocations: 152.8 kB / 0.5871 GB, free: 11.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005282/0.6889, allocations: 322.4 kB / 0.5874 GB, free: 11.55 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005174/0.6895, allocations: 210.9 kB / 0.5876 GB, free: 11.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.6895, allocations: 0 / 0.5876 GB, free: 11.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001756/0.6913, allocations: 0.5633 MB / 0.5882 GB, free: 10.96 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.6913, allocations: 8 kB / 0.5882 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009649/0.6923, allocations: 326.7 kB / 0.5885 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005552/0.6928, allocations: 79.28 kB / 0.5886 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006706/0.6935, allocations: 99.44 kB / 0.5887 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/0.696, allocations: 1.619 MB / 0.5902 GB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005031/0.6965, allocations: 23.42 kB / 0.5903 GB, free: 8.941 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-05/0.6966, allocations: 27.36 kB / 0.5903 GB, free: 8.918 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (48): * Single equations (assignments): 46 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004169/0.697, allocations: 212.5 kB / 0.5905 GB, free: 8.734 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.6971, allocations: 39.59 kB / 0.5905 GB, free: 8.695 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009815/0.6981, allocations: 351.8 kB / 0.5909 GB, free: 8.441 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.7e-05/0.6982, allocations: 7.938 kB / 0.5909 GB, free: 8.434 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.6982, allocations: 3.953 kB / 0.5909 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.6982, allocations: 0 / 0.5909 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.7005, allocations: 0.8724 MB / 0.5917 GB, free: 7.668 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.7005, allocations: 0 / 0.5917 GB, free: 7.668 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005989/0.7011, allocations: 63.78 kB / 0.5918 GB, free: 7.609 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.7011, allocations: 3.953 kB / 0.5918 GB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.7012, allocations: 11.61 kB / 0.5918 GB, free: 7.598 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.7012, allocations: 0 / 0.5918 GB, free: 7.598 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.7012, allocations: 4 kB / 0.5918 GB, free: 7.594 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.7025, allocations: 0.5895 MB / 0.5924 GB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.7026, allocations: 100.7 kB / 0.5925 GB, free: 6.969 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.416e-05/0.7027, allocations: 11.28 kB / 0.5925 GB, free: 6.961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.7031, allocations: 19.42 kB / 0.5925 GB, free: 6.945 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.902e-05/0.7032, allocations: 15.61 kB / 0.5925 GB, free: 6.934 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.7032, allocations: 4 kB / 0.5925 GB, free: 6.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003741/0.7036, allocations: 228.8 kB / 0.5928 GB, free: 6.742 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7036, allocations: 0 / 0.5928 GB, free: 6.742 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007473/0.7043, allocations: 109.1 kB / 0.5929 GB, free: 6.645 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (25): * Single equations (assignments): 23 * Array equations: 1 * 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.00177/0.7061, allocations: 1.352 MB / 0.5942 GB, free: 5.379 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.7075, allocations: 487.8 kB / 0.5946 GB, free: 4.984 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.7076, allocations: 1.688 kB / 0.5946 GB, free: 4.984 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003466/0.7079, allocations: 143.2 kB / 0.5948 GB, free: 4.883 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006066/0.7085, allocations: 68.22 kB / 0.5948 GB, free: 4.836 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008256/0.7168, allocations: 6.867 MB / 0.6015 GB, free: 14.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006854/0.7175, allocations: 0.8813 MB / 0.6024 GB, free: 13.28 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003625/0.7179, allocations: 150.2 kB / 0.6026 GB, free: 13.23 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/0.7179, allocations: 0 / 0.6026 GB, free: 13.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.933/3.651, allocations: 7.764 MB / 0.6101 GB, free: 5.527 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)